Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor formatting

...

Tapestry users the shortest alias when constructing URLs.

Eventually,

...

your

...

application

...

will

...

probably

...

have

...

more

...

entities:

...

perhaps

...

you'll

...

have

...

a

...

"user/Create"

...

page

...

and

...

a

...

"payment/Create"

...

page

...

and

...

an

...

"account/Create"

...

page.

...

You

...

could

...

have

...

a

...

bunch

...

of

...

different

...

classes

...

all

...

named

...

Create

...

spread

...

across

...

a

...

number

...

of

...

different

...

packages.

...

That's

...

legal

...

Java,

...

but

...

it

...

isn't

...

ideal.

...

You

...

may

...

find

...

yourself

...

accidentally

...

editing

...

the

...

Java

...

code

...

for

...

creating

...

an

...

Account

...

when

...

you really

...

want

...

to

...

be

...

editing

...

the

...

code

...

for

...

creating

...

a

...

Payment.

Tapestry is encouraging you to use a more descriptive name: CreateAddress, not just Create, but it isn't making you pay the cost (in terms of longer, uglier URLs). The URL to access the page will still be http://localhost:8080/tutorial1/address/create.

...

When you refresh the page, you may see the a warning like the following at the top of the page:

...