why special position for pages, components and ...?
5 Message(s) by 3 Author(s) originally posted in tapestry java
| From: Mohammad Shamsi |
Date: Wednesday, December 26, 2007
|
------=_Part_7816_11686304.1198667340324
Content-Disposition: inline
Hi,
I want to know that why I should place my pages and
component s in special
folder ?
any idea ?
--
sincerely yours
M. H. Shamsi
------=_Part_7816_11686304.1198667340324--
| From: Chris Lewis |
Date: Wednesday, December 26, 2007
|
Because it removes the necessity to think about something that generally
does not deserve thought. If you want them elsewhere, make a contribution
in your
app module.
chris
wrote in message:
Hi,
I want to know that why I should place my pages and components in special
folder ?
any idea ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
| From: Mohammad Shamsi |
Date: Wednesday, December 26, 2007
|
------=_Part_7973_5158050.1198670447581
Content-Disposition: inline
I just know that Tapestry use this
location for looking up pages.
how about a simple Annotation for page
class es instead of ?
just with using a simple Annotation (for exmaple @xxxxxxxxxxx) for a Page Class
wrote in message:
Because it removes the necessity to think about something that generally
does not deserve thought. If you want them elsewhere, make a contribution
in your app module.
chris
wrote in message:
> Hi,
>
> I want to know that why I should place my pages and components in
special
> folder ?
>
> any idea ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
--
sincerely yours
M. H. Shamsi
------=_Part_7973_5158050.1198670447581--
| From: Mohammad Shamsi |
Date: Wednesday, December 26, 2007
|
------=_Part_8178_10259216.1198676501885
Content-Disposition: inline
but you can see some mechanism in JPA (JAVA Persistence API).
here you just Annotate a class with @xxxxxxxxxxx for using it as a Entity in
application.
I think number of entities in a application isn't much less then number of
pages.but I have no performance problem in my apps using JPA.
wrote in message:
Aside from the reason I just mentioned, T5 has to know where to look to
find pages (meaning a JAVA package). With your suggested annotation only
half the work is done. If I'm not mistaken there is no clean way to
aggregate all loaded classed in the JVM. If there was, then T5'd
have to scan *all* of them for your annotation. I'd bet a good deal of
money that that'd cause a performance hit ;-). Having a known set of
locations to look in solves the performance issue and answers the
generally unimportant question of where pages should live.
wrote in message:
> I just know that Tapestry use this location for looking up pages.
> how about a simple Annotation for page classes instead of ?
> just with using a simple Annotation (for exmaple @xxxxxxxxxxx) for a Page Class
> we code place classes every where that we like.
>
>
wrote in message:
>
>
Because it removes the necessity to think about something that
generally
does not deserve thought. If you want them elsewhere, make a
contribution
in your app module.
chris
wrote in message:
> Hi,
>
> I want to know that why I should place my pages and components in
>
special
> folder ?
>
> any idea ?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
>
>
>
--
sincerely yours
M. H. Shamsi
------=_Part_8178_10259216.1198676501885--
| From: Howard Lewis Ship |
Date: Thursday, December 27, 2007
|
There are a number of reasons.
Convention over configuration. Your @xxxxxxxxxxx annotation is just another
bit of configuration that is obviated by putting classes in a known
directory. Although the layout mandated by T5 is required, it is also
the layout that I recommended for T4, even though more configuration
was necessary there. Rather than having page classes scattered about,
the mandated structure means that there is a very natural and
predictable
mapping from class name to
logical name (the logical name
being the name that appears in URLs).
Class loading: As pointed out elsewhere in this thread, having the
specific packages allows Tapestry to greatly reduce the number of
files it must scan at startup time (and then
monitor for changes). T5
page, component and mixin classes must be kept separate for ordinary
classes, as Tapestry does sophisticated conversion of the classes as
they are loaded.
You compared against JPA but JPA does its bytecode
enhancement at
build time. Tapestry does it at runtime, which is integrated into
T5's automatic reloading of changed (component) classes.
wrote in message:
Hi,
I want to know that why I should place my pages and components in special
folder ?
any idea ?
--
sincerely yours
M. H. Shamsi
--
Howard M. Lewis Ship
Creator
Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
Next Message: Displaying form data in Tapestry 5
Blogs related to why special position for pages, components and ...?
browser specifications related to java script
jean fritz biography 9 23435 0132 panphonics getting ready for your first riding lesson samoid plastic car window cleaner world record size piranha printable daily planner
pages westpac banking little house on the prairie doppler radar
...
virginia conference united methodist church
twinstar/classic 33ef004grs insert tojil potter parkcityinfo.com parkchester circle tara stiles. research in tutoring olevia lcd. static python what ecological impact cycle migrating birds altered? sample college teaching
position cover
...
special surgery, houston, texas
Java specification amateur directory a class front discs and pads diagnostic devices yorkshire bagpipe birner österreich Campgrounds in seneca falls studyminder homework serials the gods of eden you see, this here is my man and spoken
...
chevy 283
floor joist structural domain and internet space rental indianapolis imax theater muzzle loaders for sale leupold rxb-iv dog house floor plans arkansas counseling association algorithms genetic
pages knowledge area choose applets
java ...
www.rollacity.org
Why did the chicken reparing old tractors housebreaking frame john anderson working with tv vs radio mypo surgical scrub attire old middle and modern english text viewer
component -edraw -edrawsoft oldies big tree falls
...
job vacancies in kuwait for administrative position
Converse website ernestien tuttle bestiality teen stories 92 3277952691 aurora uf05 tires identify the
components of an nformation system. prenatal home visits tractor inviations barnyard nelsvac vac 9250 103 461 canon in f on
...