Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

unmigrated-inline-wiki-markup

...

{snippet:id=javadoc|javadoc=true|url=com.opensymphony.webwork.components.Anchor}

{
Note
}

While

this

tag

can

be

used

with

the

[

simple

theme

]

,

[

xhtml

theme

]

,

and

others,

it

is

really

designed

to

work

best

with

the

[

ajax

theme

]

.

We

recommend

reading

the

[

ajax

a

template

]

documentation

for

more

details.

Parameters

Wiki Markup
{note}

h1. Parameters

{snippet:id=tagattributes|javadoc=false|url=webwork/docs/tags/Anchor.html}

h1. Usage

To get 

Usage

To get started,

...

use

...

the

...

head

...

tag

...

and

...

the

...

ajax

...

theme

...

.

...

See

...

ajax

...

head

...

template

...

for

...

more

...

information.

...

Then

...

look

...

at

...

the

...

usage

...

details

...

for

...

the

...

ajax

...

a

...

template

...

.

 
If you want to use additional parameters in your ww:a

...

the

...

Best

...

Practice

...

is

...

to

...

use

...

a

...

ww:url

...

to

...

create

...

your

...

url

...

and

...

then

...

leverage

...

this

...

url

...

into

...

your

...

ww:a

...

tag.

...

This

...

is

...

done

...

by

...

creating

...

a

...

ww:url

...

and

...

specifying

...

an

...

id

...

attribute..

...

like

...

"testUrlId"

...

in

...

this

...

example.

...

Then

...

in

...

the

...

ww:a

...

tag

...

reference

...

this

...

id

...

in

...

the

...

href

...

attribute

...

via

...

"

...

%

...

{

...

testUrlId

...

}"

Code Block
html
html

 NOTE remove spaces ... there here so confluence wont barf...
{code:html}
              <ww:url id="testUrlId" namespace="/subscriber" action="customField" method="delete">
                  <ww:param name="customFieldDefinition.id" value="${id}"/>
              </ww:url>
             <ww:a errorText="Sorry your request had an error." preInvokeJS="confirm('Are you sure you want to delete this item?')" hrefxhref="%{testUrlId}">
                    <img srcxsrc="<ww:url value="/images/delete.gif"/>" border="none"/></ww:a>


{code}



<img 

<img xsrc="<ww:url

...

value="/images/delete.gif"/>"

...

border="none"/></ww:a>

...