No need to get personal, I'm just telling you about what philosophy
Trinidad has origionally taken. The idea does have some technical
merit. It is very difficult to optimize/ppr content you don't own.
ESPECIALLY if such content is JSF content. Trinidad didn't want to have
to tackles the issues involved technically.
It's not arrogance, simply that Trinidad wasn't written to be an AJAX
enablement engine as much as a rich-type renderkit which extends JSF to
do a complete GUI.
I'm also not saying that your ideas don't have merit, and your certainly
welcome to argue them on the community forums here, but try to be more
constructive.
My suggestion about A4J was just that. A4J does things on the PPR front
differently then Trinidad does. It does this specifically because it IS
an AJAX enablement engine, but not as much a application development
renderkit like Trinidad is. Each architecture has merit and I'm not
sure there is a one-size-fits-all scenario to this issue.
BTW- putting content inside of a panel that has a partial trigger will
get the behavior you want in facelets I believe. I haven't tried it
myself, and it doesn't work with JSP's so long as you rely on JSTL, but
I think facelets might actually fix that issue.
Scott
Stephen Friedrich wrote:
Too bad - and a strange (or arrogant) philosophy.
If there aren't any technical issues I haven't yet understood, I think
such a feature/tag should be included.
Why be so inflexible and malignant considering other technologies?
Trinidad: All your html are belong to us?
That might perhaps have been an Oracle strategy, but it doesn't suite an
Open Source project that well.
My app does indeed use mostly Trinidad components.
PPR is a great feature and time saver.
I would not want to do without panelFormLayout.
Lighweight dialogs are desperately needed.
There are just a few cases where a couple of lines of html plus
some css saves me from creating custom renderers or jsf components
(like a highly creative process train (think "advertising agency
employee with a faible for photoshop")).
Scott O'Bryan wrote:
The reason is one of philosophy. And there has been some debate over
this on the dev lists. I think Andrew has something which may be
thrown into the sandbox.. however..
Trindiad renderkit works off the assumption that most of your content
will be trinidad content. As such, it has PPR built in to each
component and the famework necessary to support that PPR. Components
external to Trinidad are assumed to be able to do their own PPR and
that is where the philosophy comes in. Trinidad does not try to PPR
the world, it only tries to ppr itself so it can better optimize.
Some renderkits (like A4J) take the opposite approach and basically
look at adding AJAX functionality to existing non-ppr enabled
renterkits/content. Maybe you would be better off using a technology
like that instead of Trinidad for your application.
Scott
Stephen Friedrich wrote:
I have some very specific components in my project, made using facelets
and containing mostly pure html (with some ui:repeat thrown in).
How am I supposed to make such a component the target of PPR?
Why isn't there a simple non-rendering trinidad component for that
purpose, e.g.
<tr:fragment partialTriggers="region">
... html ...
</tr:fragment>
That component could also have a rendered attribute which is nicer than
using <c:if> (and avoids confusing facelets).
Is there any other component that I could misuse for that?