You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Musachy Barroso <mu...@gmail.com> on 2009/02/09 21:06:48 UTC

Snippet variable

Something is not right with the struts2-tags snippet variable, in
http://struts.apache.org/2.x/docs/property.html:

{snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}

It is missing "escapeJavaScript" which is in svn:

http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup

anyone knows what that variable is pointing at? or where to change it?

musachy

-- 
"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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
http://confluence.atlassian.com/display/CONFEXT/Snippet+Plugin

You need to be a "Confluence Administrator" to change the snippets.

musachy

On Mon, Feb 9, 2009 at 9:32 PM, Musachy Barroso <mu...@gmail.com> wrote:
> no answer? whoever has admin rights in the wiki, can probably change
> them. I am guessing they are pointing to the 2.0 branch.
>
> musachy
>
> On Mon, Feb 9, 2009 at 9:19 PM, Dave Newton <ne...@yahoo.com> wrote:
>> Musachy Barroso wrote:
>>>
>>> Something is not right with the struts2-tags snippet variable, in
>>> http://struts.apache.org/2.x/docs/property.html:
>>>
>>> {snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}
>>>
>>> It is missing "escapeJavaScript" which is in svn:
>>>
>>>
>>> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup
>>>
>>> anyone knows what that variable is pointing at? or where to change it?
>>
>> Yeah; I asked about this back on 28 Jan--something's definitely funky.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> 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
>



-- 
"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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
no answer? whoever has admin rights in the wiki, can probably change
them. I am guessing they are pointing to the 2.0 branch.

musachy

On Mon, Feb 9, 2009 at 9:19 PM, Dave Newton <ne...@yahoo.com> wrote:
> Musachy Barroso wrote:
>>
>> Something is not right with the struts2-tags snippet variable, in
>> http://struts.apache.org/2.x/docs/property.html:
>>
>> {snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}
>>
>> It is missing "escapeJavaScript" which is in svn:
>>
>>
>> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup
>>
>> anyone knows what that variable is pointing at? or where to change it?
>
> Yeah; I asked about this back on 28 Jan--something's definitely funky.
>
> Dave
>
>
> ---------------------------------------------------------------------
> 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


Re: Snippet variable

Posted by Dave Newton <ne...@yahoo.com>.
Musachy Barroso wrote:
> Something is not right with the struts2-tags snippet variable, in
> http://struts.apache.org/2.x/docs/property.html:
> 
> {snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}
> 
> It is missing "escapeJavaScript" which is in svn:
> 
> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup
> 
> anyone knows what that variable is pointing at? or where to change it?

Yeah; I asked about this back on 28 Jan--something's definitely funky.

Dave


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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
Ah my bad, I was looking at:

http://struts.apache.org/2.x/docs/property.html:

which is the generated doc and is missing the property. The snippet is
working right:

http://cwiki.apache.org/confluence/display/WW/property

thanks Martin.
musachy

On Wed, Feb 11, 2009 at 10:31 AM, Martin Cooper <ma...@apache.org> wrote:
> On Wed, Feb 11, 2009 at 6:17 AM, Dave Newton <ne...@yahoo.com> wrote:
>
>> Martin Cooper wrote:
>>
>>> struts2-tags/ currently translates to:
>>>
>>>
>>> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/
>>>
>>
>> Hrm... well, *something* is wrong somewhere, either in configuration or my
>> brain, because the snippet macro [1] points to an old version on the
>> redirectAction result page [2] but on the cwiki/confluence/etc. page [3]
>> it's displaying from the source correctly. [2] is also showing the incorrect
>> results for version-specific stuff, like 2.1.6 is wrong.
>
>
> You're referencing a different macro than the one referenced earlier. Just
> to clarify, we seem to have a boatload of macros (where no other ASF project
> has more than one!). Here are the current values:
>
> org.apache.struts2.views.tiles.
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/
> org.apache.struts2.sitegraph.
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/
> org.apache.struts2.sitemesh.
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/
> org.apache.struts2.dojo.
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/
> struts2-tags/
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/
> struts2/
>    http://svn.apache.org/repos/asf/struts/struts2/trunk/
> org.apache.struts2.
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/
> com.opensymphony.xwork2.
>
> http://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymphony/xwork2/
> xwork2/
>    http://svn.opensymphony.com/svn/xwork/trunk/
> rest-plugin/
>    http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/rest/
>
> I've cleared the snippet cache, in case that makes a difference.
>
> --
> Martin Cooper
>
>
>
>> Dave
>>
>> [1] snippet macro
>>
>> {snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.dispatcher.ServletActionRedirectResult}
>>
>> [2] struts.apache.org redirectAction rsult page
>> http://struts.apache.org/2.x/docs/redirect-action-result.html
>>
>> [3] cwiki.apache.org/confluence page (after editing)
>> http://cwiki.apache.org/confluence/display/WW/Redirect+Action+Result
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
 All you need to do is copy the files that are missing the changes
from /www/struts.apache.org/2.x/docs to
/www/struts.apache.org/2.1.6/docs . I can think better after lunch :)

musachy

On Wed, Feb 11, 2009 at 11:17 AM, Musachy Barroso <mu...@gmail.com> wrote:
> yeah, you can just build locally(assembly goal), and then upload the
> generated files.
>
> musachy
>
> On Wed, Feb 11, 2009 at 11:15 AM, Dave Newton <ne...@yahoo.com> wrote:
>> Musachy Barroso wrote:
>>>
>>> Dave, the problem is that the docs were not generating properly (magic
>>> crontab in p.a.o), that's why it is right in wiki, but it is wrong in
>>> the docs(some changes never made it to the docs). It should be fixed
>>> for next release.
>>
>> Ah. Is there a way it can be made right for the 2.x stuff?
>>
>> Thanks,
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> 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
>



-- 
"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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
All you need to do is copy the files that are missing the changes from
/www/struts.apache.org/2.x/docs to /www/struts.apache.org/2.1.6/docs .

//sorry if it is duplicate email..gmail is messed up

musachy

On Wed, Feb 11, 2009 at 11:17 AM, Musachy Barroso <mu...@gmail.com> wrote:
> yeah, you can just build locally(assembly goal), and then upload the
> generated files.
>
> musachy
>
> On Wed, Feb 11, 2009 at 11:15 AM, Dave Newton <ne...@yahoo.com> wrote:
>> Musachy Barroso wrote:
>>>
>>> Dave, the problem is that the docs were not generating properly (magic
>>> crontab in p.a.o), that's why it is right in wiki, but it is wrong in
>>> the docs(some changes never made it to the docs). It should be fixed
>>> for next release.
>>
>> Ah. Is there a way it can be made right for the 2.x stuff?
>>
>> Thanks,
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> 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
>



-- 
"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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
yeah, you can just build locally(assembly goal), and then upload the
generated files.

musachy

On Wed, Feb 11, 2009 at 11:15 AM, Dave Newton <ne...@yahoo.com> wrote:
> Musachy Barroso wrote:
>>
>> Dave, the problem is that the docs were not generating properly (magic
>> crontab in p.a.o), that's why it is right in wiki, but it is wrong in
>> the docs(some changes never made it to the docs). It should be fixed
>> for next release.
>
> Ah. Is there a way it can be made right for the 2.x stuff?
>
> Thanks,
> Dave
>
>
> ---------------------------------------------------------------------
> 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


Re: Snippet variable

Posted by Dave Newton <ne...@yahoo.com>.
Musachy Barroso wrote:
> Dave, the problem is that the docs were not generating properly (magic
> crontab in p.a.o), that's why it is right in wiki, but it is wrong in
> the docs(some changes never made it to the docs). It should be fixed
> for next release.

Ah. Is there a way it can be made right for the 2.x stuff?

Thanks,
Dave


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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
Dave, the problem is that the docs were not generating properly (magic
crontab in p.a.o), that's why it is right in wiki, but it is wrong in
the docs(some changes never made it to the docs). It should be fixed
for next release.

musachy

On Wed, Feb 11, 2009 at 10:57 AM, Dave Newton <ne...@yahoo.com> wrote:
> Martin Cooper wrote:
>>
>> You're referencing a different macro than the one referenced earlier.
>
> Well, it's the same macro (snippet), just a difference URL prefix.
>
> All I know is that the redirectAction stuff is wrong on the struts.org URL
> and right when I edit/preview/etc. on the cwiki.apache.org URL :/
>
> I guess I (still--I am slow) don't get the way the wiki works.
>
> Dave
>
> ---------------------------------------------------------------------
> 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


Re: Snippet variable

Posted by Dave Newton <ne...@yahoo.com>.
Martin Cooper wrote:
> You're referencing a different macro than the one referenced earlier. 

Well, it's the same macro (snippet), just a difference URL prefix.

All I know is that the redirectAction stuff is wrong on the struts.org 
URL and right when I edit/preview/etc. on the cwiki.apache.org URL :/

I guess I (still--I am slow) don't get the way the wiki works.

Dave

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


Re: Snippet variable

Posted by Martin Cooper <ma...@apache.org>.
On Wed, Feb 11, 2009 at 6:17 AM, Dave Newton <ne...@yahoo.com> wrote:

> Martin Cooper wrote:
>
>> struts2-tags/ currently translates to:
>>
>>
>> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/
>>
>
> Hrm... well, *something* is wrong somewhere, either in configuration or my
> brain, because the snippet macro [1] points to an old version on the
> redirectAction result page [2] but on the cwiki/confluence/etc. page [3]
> it's displaying from the source correctly. [2] is also showing the incorrect
> results for version-specific stuff, like 2.1.6 is wrong.


You're referencing a different macro than the one referenced earlier. Just
to clarify, we seem to have a boatload of macros (where no other ASF project
has more than one!). Here are the current values:

org.apache.struts2.views.tiles.

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/
org.apache.struts2.sitegraph.

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/
org.apache.struts2.sitemesh.

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/
org.apache.struts2.dojo.

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/
struts2-tags/

http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/
struts2/
    http://svn.apache.org/repos/asf/struts/struts2/trunk/
org.apache.struts2.

http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/
com.opensymphony.xwork2.

http://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymphony/xwork2/
xwork2/
    http://svn.opensymphony.com/svn/xwork/trunk/
rest-plugin/
    http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/rest/

I've cleared the snippet cache, in case that makes a difference.

--
Martin Cooper



> Dave
>
> [1] snippet macro
>
> {snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.dispatcher.ServletActionRedirectResult}
>
> [2] struts.apache.org redirectAction rsult page
> http://struts.apache.org/2.x/docs/redirect-action-result.html
>
> [3] cwiki.apache.org/confluence page (after editing)
> http://cwiki.apache.org/confluence/display/WW/Redirect+Action+Result
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Snippet variable

Posted by Dave Newton <ne...@yahoo.com>.
Martin Cooper wrote:
> struts2-tags/ currently translates to:
> 
> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/

Hrm... well, *something* is wrong somewhere, either in configuration or 
my brain, because the snippet macro [1] points to an old version on the 
redirectAction result page [2] but on the cwiki/confluence/etc. page [3] 
it's displaying from the source correctly. [2] is also showing the 
incorrect results for version-specific stuff, like 2.1.6 is wrong.

Dave

[1] snippet macro
{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.dispatcher.ServletActionRedirectResult}

[2] struts.apache.org redirectAction rsult page
http://struts.apache.org/2.x/docs/redirect-action-result.html

[3] cwiki.apache.org/confluence page (after editing)
http://cwiki.apache.org/confluence/display/WW/Redirect+Action+Result


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


Re: Snippet variable

Posted by Musachy Barroso <mu...@gmail.com>.
Could it be some sort of caching problem? It is definitely missing the
"escapeJavaScript" attribute.

thanks
musachy

On Wed, Feb 11, 2009 at 12:54 AM, Martin Cooper <ma...@apache.org> wrote:
> On Mon, Feb 9, 2009 at 12:06 PM, Musachy Barroso <mu...@gmail.com> wrote:
>
>> Something is not right with the struts2-tags snippet variable, in
>> http://struts.apache.org/2.x/docs/property.html:
>>
>> {snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}
>>
>> It is missing "escapeJavaScript" which is in svn:
>>
>>
>> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup
>>
>> anyone knows what that variable is pointing at? or where to change it?
>
>
> struts2-tags/ currently translates to:
>
> http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/
>
> --
> Martin Cooper
>
>
> musachy
>>
>> --
>> "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
>>
>>
>



-- 
"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


Re: Snippet variable

Posted by Martin Cooper <ma...@apache.org>.
On Mon, Feb 9, 2009 at 12:06 PM, Musachy Barroso <mu...@gmail.com> wrote:

> Something is not right with the struts2-tags snippet variable, in
> http://struts.apache.org/2.x/docs/property.html:
>
> {snippet:id=tagattributes|javadoc=false|url=struts2-tags/property.html}
>
> It is missing "escapeJavaScript" which is in svn:
>
>
> http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/property.html?view=markup
>
> anyone knows what that variable is pointing at? or where to change it?


struts2-tags/ currently translates to:

http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/site/resources/tags/

--
Martin Cooper


musachy
>
> --
> "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
>
>