You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "richardl@ufp.com" <ri...@ufp.com> on 2007/10/21 21:55:15 UTC

Double processing of @Insert

I have a &lt;span class="input" jwcid="@Insert"
value="ognl:currentObjectInput.input" raw="true"/&gt; within a @For. The
input value is something like &lt;input type="text" name="email"/&gt; which
renders as an input tag correctly.

What Id like to do is something like an input value of:

&lt;input jwcid="@TextField" type="text" name="email"
value="ognl:@currentUser.email"/&gt; and have that process the value of the
TextField and get the email of the currentUser object as the default value
of the TextField. I realize that requires Tap to first process the @Insert
and then do a 2nd processing of the @TextField. 

Can anyone suggest an approach that I might consider to get the behavior I
want?

r
-- 
View this message in context: http://www.nabble.com/Double-processing-of-%40Insert-tf4667246.html#a13332619
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Double processing of @Insert

Posted by "richardl@ufp.com" <ri...@ufp.com>.
The first @Insert comes from a persistent store that maintains "decoration"
information. i.e. The input will not always be a TextField, in fact the
other cases where the double processing is required, the input is not a
TextField at all. 

This is Tap 4.1.2 btw

r


Howard Lewis Ship wrote:
> 
> And why are you not using a TextField component?
> 
> On 10/21/07, richardl@ufp.com <ri...@ufp.com> wrote:
>>
>>
>> I have a &lt;span class="input" jwcid="@Insert"
>> value="ognl:currentObjectInput.input" raw="true"/&gt; within a @For. The
>> input value is something like &lt;input type="text" name="email"/&gt;
>> which
>> renders as an input tag correctly.
>>
>> What Id like to do is something like an input value of:
>>
>> &lt;input jwcid="@TextField" type="text" name="email"
>> value="ognl:@currentUser.email"/&gt; and have that process the value of
>> the
>> TextField and get the email of the currentUser object as the default
>> value
>> of the TextField. I realize that requires Tap to first process the
>> @Insert
>> and then do a 2nd processing of the @TextField.
>>
>> Can anyone suggest an approach that I might consider to get the behavior
>> I
>> want?
>>
>> r
>> --
>> View this message in context:
>> http://www.nabble.com/Double-processing-of-%40Insert-tf4667246.html#a13332619
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> -- 
> Howard M. Lewis Ship
> Partner and Senior Architect at Feature50
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> 

-- 
View this message in context: http://www.nabble.com/Double-processing-of-%40Insert-tf4667246.html#a13358178
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Double processing of @Insert

Posted by Howard Lewis Ship <hl...@gmail.com>.
And why are you not using a TextField component?

On 10/21/07, richardl@ufp.com <ri...@ufp.com> wrote:
>
>
> I have a &lt;span class="input" jwcid="@Insert"
> value="ognl:currentObjectInput.input" raw="true"/&gt; within a @For. The
> input value is something like &lt;input type="text" name="email"/&gt;
> which
> renders as an input tag correctly.
>
> What Id like to do is something like an input value of:
>
> &lt;input jwcid="@TextField" type="text" name="email"
> value="ognl:@currentUser.email"/&gt; and have that process the value of
> the
> TextField and get the email of the currentUser object as the default value
> of the TextField. I realize that requires Tap to first process the @Insert
> and then do a 2nd processing of the @TextField.
>
> Can anyone suggest an approach that I might consider to get the behavior I
> want?
>
> r
> --
> View this message in context:
> http://www.nabble.com/Double-processing-of-%40Insert-tf4667246.html#a13332619
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind