Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Description

Wiki Markup
{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.Div}
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 div template documentation for more details.

Parameters

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

div

...

Attribute

...

Type

...

Required

...

Default

...

Description

...

id

...

string

...

TRUE

...

 

...

The id to assign the DIV

...

name

...

string

...

TRUE

...

 

...

 

...

value

...

string

...

FALSE

...

 

...

 

...

href

...

string

...

TRUE

...

 

...

The URL to call to obtain the content

...

delay

...

boolean

...

FALSE

...

 

...

How long to wait before fetching the content (in milliseconds)

...

updateFreq

...

boolean

...

FALSE

...

 

...

How often to re-fetch the content (in milliseconds)

...

loadingText

...

boolean

...

FALSE

...

 

...

The text to display to the user while the new content is being fetched (especially good if the content will take awhile

...

errorText

...

boolean

...

FALSE

...

 

...

The text to display to the user if the is an error fetching the content

...

showErrorTransportText

...

boolean

...

FALSE

...

 

...

true/false - when to show the error message as content when the URL had problems

...

listenTopics

...

boolean

...

FALSE

...

 

...

Topic name to listen to (comma delimited), that will cause the DIV's content to be re-fetched

...

afterLoading

...

boolean

...

FALSE

...

 

...

Javascript code that will be executed after the content has been fetched

...

required

...

boolean

...

FALSE

...

 

...

 

...

disabled

...

boolean

...

FALSE

...

 

...

 

...

theme

...

string

...

FALSE

...

 

...

This tag will usually use the ajax theme

...

template

...

string

...

FALSE

...

 

...

 

...

cssClass

...

string

...

FALSE

...

 

...

 

...

cssStyle

...

string

...

FALSE

...

 

...

 

...

label

...

string

...

FALSE

...

 

...

 

...

labelposition

...

string

...

FALSE

...

 

...

 

...

tabindex

...

string

...

FALSE

...

 

...

 

...

onclick

...

string

...

FALSE

...

 

...

 

...

ondblclick

...

string

...

FALSE

...

 

...

 

...

onmousedown

...

string

...

FALSE

...

 

...

 

...

onmouseup

...

string

...

FALSE

...

 

...

 

...

onmouseover

...

string

...

FALSE

...

 

...

 

...

onmousemove

...

string

...

FALSE

...

 

...

 

...

onmouseout

...

string

...

FALSE

...

 

...

 

...

onfocus

...

string

...

FALSE

...

 

...

 

...

onblur

...

string

...

FALSE

...

 

...

 

...

onkeypress

...

string

...

FALSE

...

 

...

 

...

onkeydown

...

string

...

FALSE

...

 

...

 

...

onselect

...

string

...

FALSE

...

 

...

 

...

onchange

...

string

...

FALSE

...

 

...