struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Google Dev Day
Date Tue, 26 Aug 2008 19:15:09 GMT
Yes, take a look here:

http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-gxp-plugin/src/main/resources/template/simple/

To create an image tag with gxp you could do something like:

<img src="user.gif">
  <gxp:attr name='alt'>
    <gxp:eval expr="user.getName()"/>
  </gxp:attr>
</img>

now, in the start tag file we would have:

<img src="user.gif">
  <gxp:attr name='alt'>
    <gxp:eval expr="user.getName()"/>
</gxp:attr>

and in the end tag file we would have:

</img>

GXP doesn't like that. We could get rid of the opening/closing tag and
just have one tag file that inserts the tag body. Does that make some
sense?
musachy


On Tue, Aug 26, 2008 at 2:55 PM, Al Sutton <al.sutton@alsutton.com> wrote:
> Have you got your code up somewhere, I'd like to take a look so I know what
> I'd be commenting on (and I can take a copy on a laptop).
>
> Thanks,
>
> Al.
>
> Musachy Barroso wrote:
>>
>> Yes, in fact I have been having some trouble trying to implement the
>> tags with gxp. The problem is that out tags are splitted in 2 files,
>> the open tag is in one and the close tag is in the other. GXP doesn't
>> like this, as the xml won't be well formed on each individual
>> template. You could get some suggestions on what would be the best way
>> of doing this.
>>
>> musachy
>>
>> On Tue, Aug 26, 2008 at 10:04 AM, Al Sutton <al.sutton@alsutton.com>
>> wrote:
>>
>>>
>>> Guys,
>>>
>>> I'm going to be going to Googles Dev Day in London in mid-September, is
>>> there anything anyone wants me to get info on given the recent GXP
>>> discussions, etc.?
>>>
>>> Al.
>>> --
>>> Al Sutton
>>>
>>> W: www.alsutton.com
>>> B: alsutton.wordpress.com
>>> T: twitter.com/alsutton
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message