672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 33 Messages: 33 Messages: 33 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Jacob Hookom on August 09, 2005 DIGG
Facelets is a light-weight, templating framework backed by JavaServer Faces as the industry standard. Anyone who has created a JSP page will be able to do the same with Facelets and familiar XML-tag use. The difference is under the hood where all the burden of the JSP vendor API is removed to greatly enhance JSF as a platform and provide easy plug-and-go development without requiring JSP tag development to integrate with JSF.

Facelets includes many features which include:

  • Works with JSF 1.1 and JSF 1.2, including Sun's RI and Apache MyFaces.
  • Zero Tag development time for UIComponents
  • Fast Templating/Decorators for Components and Pages
  • The ability to specify <code>UIComponent</code> trees in separate files (<code>UICompositions</code>)
  • Line/Tag/Attribute precise Error Reporting
  • Specify Tags in Separate Files, even packaged with Jars
  • Full EL support, including Functions
  • Developer-mode for Easy Error resolution
  • Build-time EL Validation
  • XML configuration files aren't necessary
  • Reserves the '<code>jsfc</code>' attribute which acts the same as Tapestry's jwcid (Example: <code><input id="bar" type="text" jsfc="h:inputText" value="#{foo.bar}"/></code>)
  • Plugable Decorators to really make designer's job easy (Example: transform <code><input type="text"/></code> to <code><h:inputText/></code> at compile time)
  • Works with any <code>RenderKit</code>
  • Facelets could be used outside of a Web Container with JSF
Home Page: http://facelets.dev.java.net

Documentation: http://facelets.dev.java.net/nonav/docs/dev/docbook.html

Development Error Pages: http://facelets.dev.java.net/nonav/docs/dev/error.html

Everyone wants to be more HTML-designer friendly, and in my opinion, Tapestry seems to be the only choice developers are pursuing. On the other hand, JSF is the standard a lot of people would like to have happen. But, JSF needs a more "pluggable" ViewHandler framework that is both designer and developer friendly. Facelets is a clean slate for correcting concerns with JSF. Templating, re-use, and ease of development are top priorities that will help bring developers on board with JSF as a suitable platform for large scale projects.

Facelets is still adding new features-- what features would you want Facelets to include?

Threaded replies

·  Facelets 0.8 released, competing with Tapestry in the JSF world by Jacob Hookom on Tue Aug 09 09:57:39 EDT 2005
  ·  Congrats.. by Eugene Lucash on Wed Aug 10 14:53:21 EDT 2005
    ·  Facelets by Werner Punz on Thu Aug 11 03:58:15 EDT 2005
  ·  Abandoning tools? by Howard Lewis Ship on Wed Aug 10 15:06:49 EDT 2005
    ·  Abandoning tools? by Emmanuel Pirsch on Wed Aug 10 15:26:18 EDT 2005
      ·  Abandoning tools? by Dennis Pettersson on Mon Jan 09 21:37:25 EST 2006
    ·  Mythical tools by Eugene Lucash on Wed Aug 10 15:27:36 EDT 2005
    ·  Abandoning tools? by Jacob Hookom on Wed Aug 10 16:01:24 EDT 2005
  ·  Congrats! by Kito Mann on Wed Aug 10 15:28:42 EDT 2005
    ·  Congrats.. by Gary VanMatre on Wed Aug 10 16:09:32 EDT 2005
  ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Matt Raible on Wed Aug 10 17:00:29 EDT 2005
    ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Jacob Hookom on Wed Aug 10 17:28:55 EDT 2005
  ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Steve Zara on Wed Aug 10 17:17:04 EDT 2005
  ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Mind Bridge on Wed Aug 10 17:57:39 EDT 2005
    ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Jacob Hookom on Wed Aug 10 18:02:44 EDT 2005
      ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Mind Bridge on Wed Aug 10 19:18:11 EDT 2005
        ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Jacob Hookom on Wed Aug 10 19:31:48 EDT 2005
    ·  Facelets 0.8 released, competing with Tapestry in the JSF world by Jacob Hookom on Wed Aug 10 18:14:23 EDT 2005
  ·  All Java vs Java... How is it when compared to .Net? by Serge Libotte on Thu Aug 11 04:42:08 EDT 2005
    ·  All Java vs Java... How is it when compared to .Net? by Rogerio Saulo on Thu Aug 11 09:14:46 EDT 2005
      ·  All Java vs Java... How is it when compared to .Net? by Jacob Hookom on Thu Aug 11 09:20:34 EDT 2005
        ·  All Java vs Java... How is it when compared to .Net? by Jacob Hookom on Thu Aug 11 09:26:46 EDT 2005
          ·  All Java vs Java... How is it when compared to .Net? by Rogerio Saulo on Thu Aug 11 09:58:46 EDT 2005
            ·  All Java vs Java... How is it when compared to .Net? by Jacob Hookom on Thu Aug 11 10:05:40 EDT 2005
              ·  All Java vs Java... How is it when compared to .Net? by Rogerio Saulo on Thu Aug 11 10:32:00 EDT 2005
                ·  You can use facelts outside webappserver by Eugene Lucash on Fri Aug 12 03:20:27 EDT 2005
    ·  ASP.Net is much better than JSPs by Anthony Berglas on Wed Aug 17 00:56:14 EDT 2005
      ·  ASP.Net is much better than JSPs by Anthony Berglas on Wed Aug 17 01:41:33 EDT 2005
        ·  ASP.Net is much better than JSPs by Jacob Hookom on Wed Aug 17 01:43:59 EDT 2005
          ·  Documentation for Facelets by Anthony Berglas on Wed Aug 17 03:37:25 EDT 2005
            ·  Documentation for Facelets by Jacob Hookom on Wed Aug 17 04:07:18 EDT 2005
  ·  What is it better than Tiles ? by Rogerio Saulo on Thu Aug 11 09:10:48 EDT 2005
    ·  What is it better than Tiles ? by Jacob Hookom on Thu Aug 11 09:25:16 EDT 2005
    ·  Main advantage is droppring JSP ;) by Eugene Lucash on Fri Aug 12 03:21:46 EDT 2005
  Message #180886 Post reply Post reply Post reply Go to top Go to top Go to top

Congrats..

Posted by: Eugene Lucash on August 10, 2005 in response to Message #180740
I hope this version will be usable.
I've checked releases time to time from the very begining
and there always was something that went wrong.
Many bugs was solved, even my issue #1 ;) (But still there are some echos from those problem)
There are another sad tendency in increasing complexity.
But I'm very optimistic... keep going.
Good Luck,
E.Lucash

  Message #180887 Post reply Post reply Post reply Go to top Go to top Go to top

Abandoning tools?

Posted by: Howard Lewis Ship on August 10, 2005 in response to Message #180740
Does a move to this view technology mean that use of drag-and-drop tools (or other wizards) will be broken? As I understand it, all the d-n-d tools out there are predicated on the standard JSP view technology.

So, without tools, just how much XML and Java coding is necessary? This has been the big push in Tapestry 4.0 (now in beta, and so a valid comparison against an 0.8 Facelets release). In every aspect of Tapestry has been the drive to eliminate XML, or at least simplify it, and to reduce the amount of Java code.

Tapestry 4.0 also has terrific integration with HiveMind and Spring and re-orients the model around a very sophisticated form of injection (by sophisticated, I mean that often what's injected is code, not just objects).

So, if you abandon the tools support of JSP/JSF, do you still compare to Tapestry productivity? And don't forget all the rest of Tapestry: localization support, state management, dynamic JavaScript generation, and general runtime efficiency.

Still, it's nice that people have been paying attention to Tapestry 3.0, but the bar has been raised much higher with Tapestry 4.0!

  Message #180888 Post reply Post reply Post reply Go to top Go to top Go to top

Abandoning tools?

Posted by: Emmanuel Pirsch on August 10, 2005 in response to Message #180887
What tools??? There is no JSF drag ann drop tools that work with every non-standard components.

However, Facelets allows you to choose from ANY HTML authoring tools (drag and drop or not) to design your pages (just like Tapestry). So you have a lot more choice of tools.

Regarding Tapestry 4.0... beside lightweight cointainer intergration, Facelets is more like 4.0 than 3.0. You need not to create Java classes for you pages and you do not need to create a seperate XML file to describe your component tree. You just have to create you XHTML (or anything XML) page to create the component tree.

I'm not saying that JSF/Facelet is way better than Tapestry. I'm just saying that it's a nice alternative and that it makes the use of JSF a lot more easier. I just hope that Facelets will get in JSF 2.0 spec as it should have been done for JSF 1.0 instead of have JSP integration.

  Message #180889 Post reply Post reply Post reply Go to top Go to top Go to top

Mythical tools

Posted by: Eugene Lucash on August 10, 2005 in response to Message #180887
For real development there are no real JSF tools except those that manipule faces.xml to easy create managed beans and such.
Other wysiwyg tools like sun jscreator, nitrox on eclipse and other does not provide any comfort to construct complex, high quality view. Magic is in components. Yes, jsf components (out of the box) are very basic, but I can create ones (equally to Tapesty)
"Sophisticated injections" and intercepters can be perfectly changed to full-fleged AOP solutions like AspectJ or AspectWerkz.
Spring integration in jsf? No problem.
HiveMind? IMHO Hivemind is personal powertoy.
JavaScripts? Components are designed badly so they need those scripts. Quality components works with scripts in other way.

So Tapestry for all, JSF only for those who can in leverage it with quality component and others "plugins"

Conclusion.... Different Auditory

P.S. Have Tapesty normal xml template parser, not only regex parser for badly structured html like markup?
Regards

  Message #180890 Post reply Post reply Post reply Go to top Go to top Go to top

Congrats!

Posted by: Kito Mann on August 10, 2005 in response to Message #180740
Congrats on the release, Jacob! I think Facelets is a great step forward for JSF, and a good example of what's possible with the technology. It's good for people to see JSF in a world without JSP.

Also, stay tuned, as we'll be featuring a series of articles about Facelets on JSF Central.

Kito D. Mann
Author, JavaServer Faces in Action
http://www.JSFCentral.com - JSF FAQ, news, and info

Are you using JSF in a project? Send your story to trenches@jsfcentral.com, and you could get your story published and win a free copy of JavaServer Faces in Action!

  Message #180895 Post reply Post reply Post reply Go to top Go to top Go to top

Abandoning tools?

Posted by: Jacob Hookom on August 10, 2005 in response to Message #180887
Hey Howard!

Facelets is only one part of the JSF stack that can be used with any other advances in component development and controller behavior. So while Tapestry 4.0 covers a much wider scope than Facelets as a hole, Facelets doesn't lock you into a complete implementation of the whole application stack-- just the view rendering. So when I talk about Tapestry-like features, they are only maintained in the view layer.

Pertaining to XML and annotations: With XML and vendor tools, Facelets will be supporting Oracle's new 276 JSR for component metadata-- which would completely remove the concept of 'tag libraries' or 'tag definitions'. You can actually take a JSF page in JSPX and compile it as a Facelet.

With annotations, JSF itself, provides all the opportunity in the world to accomodate annotations for controllers and state management (as I'm pursuing). Again, the upside is that developers have many options to swap in or use whatever frameworks they want through the JSF stack.

There are a lot of vendors/os projects that have expressed interest or committed to adding support for Facelets. There's also opportunity to embed Facelets within other view technologies since the API is very similar to Velocity with a factory-inclusion capabilities.

-- Jacob

  Message #180897 Post reply Post reply Post reply Go to top Go to top Go to top

Congrats..

Posted by: Gary VanMatre on August 10, 2005 in response to Message #180890
IMO, Facelets is a true testament to the richness and extendibility of the JSF framework and proves a tool for innovation. Brilliant work, Jacob.

  Message #180908 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Matt Raible on August 10, 2005 in response to Message #180740
Great stuff Jacob - can't wait to try it out. This is what JSF really needs IMO - having JSP pages w/o any HTML in them is ugly.

JSF Tag Soup vs. Tapestry HTML.

  Message #180910 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Steve Zara on August 10, 2005 in response to Message #180740
Well done - a big step forward.

  Message #180911 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Jacob Hookom on August 10, 2005 in response to Message #180908
Great stuff Jacob - can't wait to try it out. This is what JSF really needs IMO - having JSP pages w/o any HTML in them is ugly.JSF Tag Soup vs. Tapestry HTML.

Thanks Matt, how's the VW? ;-)

I do think there's opportunity to find balance and flexability between HTML and 'tags', Facelets isn't completely where Tapestry is, but by all means could very easily. You can already do stuff like:

<span jsfc="c:if" test="#{person.roles['admin']}">
  // output
</span>

But it can be up to the developer/designer if they would rather use the normal <c:if> within Facelets.

Cheers!

  Message #180920 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Mind Bridge on August 10, 2005 in response to Message #180740
Good job.

Just curious, what are the steps that a developer needs to undertake to create a new component?

  Message #180922 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Jacob Hookom on August 10, 2005 in response to Message #180920
Good job.Just curious, what are the steps that a developer needs to undertake to create a new component?

I know I'm walking into a trap ;-)

Component development is exactly the same as with all JSF components. The benefit of Facelets is that it doesn't require you to: write a JSP tag that must be maintained alongside your component, write a TLD file that has mirrors every property you want.

http://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-create-component

  Message #180923 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Jacob Hookom on August 10, 2005 in response to Message #180920
Good job.Just curious, what are the steps that a developer needs to undertake to create a new component?

I should note that outside of Facelets, I am working on foundation Components that have annotation support for state management and rendering-- K.I.S.S Components ;-)

  Message #180931 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Mind Bridge on August 10, 2005 in response to Message #180922
I know I'm walking into a trap ;-)
Not really, I just saw "Zero Tag development time for UIComponents" and wondered what that meant. :)
Component development is exactly the same as with all JSF components. The benefit of Facelets is that it doesn't require you to: write a JSP tag that must be maintained alongside your component, write a TLD file that has mirrors every property you want.
I guess that greatly narrows the margin of error. It does not eliminate it completely I think, as JSF requires a number of other steps as well. Nevertheless, it does seem like this is a very good step in the right direction.

I guess Tapestry has spoiled me to have to write only the logic in a Java file and the presentation in an HTML file and be done with it.

  Message #180933 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets 0.8 released, competing with Tapestry in the JSF world

Posted by: Jacob Hookom on August 10, 2005 in response to Message #180931
I guess Tapestry has spoiled me to have to write only the logic in a Java file and the presentation in an HTML file and be done with it.

That's true, the downside of JSF is that rendering is intended to be done within the one Java class-- much like the new StaX writer for XML. On the otherhand, I'm okay with things working that way because it encourages separation of semantic structure from presentation (HTML).

http://weblogs.java.net/blog/jhook/archive/2005/07/programmer_frie_1.html

Facelets does attempt to create 'pseudo' components that are built on compositions:

http://facelets.dev.java.net/nonav/docs/dev/docbook.html#template-component

  Message #180962 Post reply Post reply Post reply Go to top Go to top Go to top

Facelets

Posted by: Werner Punz on August 11, 2005 in response to Message #180886
Is currently one of the best solutions to the we want an easy componetization problem.
One of the main problems JSF has currently (besides the dreaded Datamodel, which is really awfully designed) is the hard way to create a component, although there are shortcuts, but they are not that well documented.

Basically what JSF tries to achieve is, that you have a clear MVC separation on the component level, a good approach, the binding is done via the config file entries, also a viable approach.

The main problem is that you also have to provide the hooks into the taglibs, which means another set of config file entries in a different config file.

The approach has to be done that way, because JSF wants to achieve rendering platform independence, a render kit against VT220 would be possible, another one against XUL, and probably another one against Swing. I do not know if anyone has driven that technology that far, but it is possible (there is a WAP implementation for MyFaces) hence the porting of applications to different rendering methods is eased that way.

But what comes with the flexibility is an increased complexity on the component programming level with a lack of extensive documentation on how to do things (Kitos Book is the best bet currently if you want to go into component programming, especially the online section, but there is definitely a need for an entire book describing all the aspects of that stuff, it is really complex)

Component programming in JSF is not a walk in the park, but at least you can shortcut some stuff, you cann move the rendering if you target only one platform into the controller logic, but you cannot really bypass the hooks into the taglibs or the separate controller to my knowledge, even if you want to because you only target HTML.

Additionally to that there is no realy official client side way to do client only componentization.

MyFaces has the x:aliasBean, which is a very easy way to get pure client components, but those omit the controller aspects (you cannot pass a different controller)

Then there is tiles, which is good but overly complicated and adds another set of config files to the mix.

And then there is facelets, the most interesting approach currently for solving the problem of getting an easy componentization way.

  Message #180964 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Serge Libotte on August 11, 2005 in response to Message #180740
Can someone that really knows both world tell us where we are now.
I gave up with JSF a long time ago saying "they will do something better that that".
Things have changed here?

  Message #180987 Post reply Post reply Post reply Go to top Go to top Go to top

What is it better than Tiles ?

Posted by: Rogerio Saulo on August 11, 2005 in response to Message #180740
Hi,

I´m not a user of Tapestry, but reading the documentation of the Facelets, i do not see nothing much better than use of JSF with Tiles Support (I´m using Tiles + JSF + MYfaces) for the presentation tier.

Anyone can point what are the advantages of using Facelets in contrast of Tiles if exist one ?

Thanks

  Message #180988 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Rogerio Saulo on August 11, 2005 in response to Message #180964
You cannot compare to .NET today because .NET is moving to Avalon, and will change everything that MS developers use today, IMO another big mistake from MS, we have tecnologies like avalon today in the J2EE world as Thinlets, XUL, Lazlo, etc, with Avalon MS will do the same, but for one single OS, something new to you ??? ($$$$$$$$)

  Message #180989 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Jacob Hookom on August 11, 2005 in response to Message #180988
You cannot compare to .NET today because .NET is moving to Avalon, and will change everything that MS developers use today, IMO another big mistake from MS, we have tecnologies like avalon today in the J2EE world as Thinlets, XUL, Lazlo, etc, with Avalon MS will do the same, but for one single OS, something new to you ??? ($$$$$$$$)

Interesting point. Because JSF is most commonly used with JSP, it creates a 'web-based' dependency for application development. Facelets uses XML and as the last bullet states, you could use JSF with Facelets outside of a web container-- in a desktop application for example. Granted you would need to provide a new ViewHandler for such a different deployment, but the Facelet engine could be used within it to generate component views for XUL, Lazlo, Thinlets, Web Services, etc.

  Message #180990 Post reply Post reply Post reply Go to top Go to top Go to top

What is it better than Tiles ?

Posted by: Jacob Hookom on August 11, 2005 in response to Message #180987
Hi, I´m not a user of Tapestry, but reading the documentation of the Facelets, i do not see nothing much better than use of JSF with Tiles Support (I´m using Tiles + JSF + MYfaces) for the presentation tier.Anyone can point what are the advantages of using Facelets in contrast of Tiles if exist one ?

Thanks

Facelets uses the new EL API for *correct* variable management in the view (> JSP 2.1). When people talk about Tiles features, Facelets provides the same thing-- document based though. You have ui:composition, ui:component, ui:define, ui:insert, ui:decorate, ui:remove, etc... So there's quite a large toolkit there for developers to choose from to handle view definitions.

Cheers

  Message #180991 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Jacob Hookom on August 11, 2005 in response to Message #180989
You cannot compare to .NET today because .NET is moving to Avalon, and will change everything that MS developers use today, IMO another big mistake from MS, we have tecnologies like avalon today in the J2EE world as Thinlets, XUL, Lazlo, etc, with Avalon MS will do the same, but for one single OS, something new to you ??? ($$$$$$$$)
Interesting point. Because JSF is most commonly used with JSP, it creates a 'web-based' dependency for application development. Facelets uses XML and as the last bullet states, you could use JSF with Facelets outside of a web container-- in a desktop application for example. Granted you would need to provide a new ViewHandler for such a different deployment, but the Facelet engine could be used within it to generate component views for XUL, Lazlo, Thinlets, Web Services, etc.

Oops, I should point out that Facelets in a web container could deliver all of those component views as it stands now.

  Message #180997 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Rogerio Saulo on August 11, 2005 in response to Message #180991
You cannot compare to .NET today because .NET is moving to Avalon, and will change everything that MS developers use today, IMO another big mistake from MS, we have tecnologies like avalon today in the J2EE world as Thinlets, XUL, Lazlo, etc, with Avalon MS will do the same, but for one single OS, something new to you ??? ($$$$$$$$)
Interesting point. Because JSF is most commonly used with JSP, it creates a 'web-based' dependency for application development. Facelets uses XML and as the last bullet states, you could use JSF with Facelets outside of a web container-- in a desktop application for example. Granted you would need to provide a new ViewHandler for such a different deployment, but the Facelet engine could be used within it to generate component views for XUL, Lazlo, Thinlets, Web Services, etc.
Oops, I should point out that Facelets in a web container could deliver all of those component views as it stands now.

I agree with you, but I really want to see a working JSF RenderKit or Facelet View Handler that pick an XML and render to both HTML and Swing, IBM has released a few days ago a JSF renderkit that generate Lazlo applications, but the renderkit does not give an option like HTML for the same source XML. My point is, you are right that JSF with Tiles create a "web-based" dependency and Facelets can possibly generate another type of client interface, but can you give me an example?? I had not saw any type of framework ou technology that do this, only proposes and teorical technologies like Avalon now with MS too.

  Message #181000 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Jacob Hookom on August 11, 2005 in response to Message #180997
My point is, you are right that JSF with Tiles create a "web-based" dependency and Facelets can possibly generate another type of client interface, but can you give me an example?? I had not saw any type of framework ou technology that do this, only proposes and teorical technologies like Avalon now with MS too.

Roger Kitain, from Sun, has been focusing on the features you are describing. At JavaOne, he had one application that went from HTML to SVG, to XUL and back again. The SVG was very Flash-like-- cool stuff! I missed a different presentation given by Oracle that used JSF to power a console (SSH) application.

The rendering part of JSF (can be)/is separate from the view definition (Facelets), so you could create a view of pure components that have Renderers available for your different interfaces.

  Message #181007 Post reply Post reply Post reply Go to top Go to top Go to top

All Java vs Java... How is it when compared to .Net?

Posted by: Rogerio Saulo on August 11, 2005 in response to Message #181000
I will like to see that presentation, appears very cool, but, there is a web container needed to run ? I will love to see an technology like this running in a lightweight container out of a J2EE container, something like Spring.
A few months ago I evaluate the lazlo for client interface, but the XML needed by lazlo is proprietary and the creation of a new render kit to render lazlo as HTML was imperative and time consuming.

  Message #181115 Post reply Post reply Post reply Go to top Go to top Go to top

You can use facelts outside webappserver

Posted by: Eugene Lucash on August 12, 2005 in response to Message #181007
but, there is a web container needed to run ? I will love to see an technology like this running in a lightweight container out of a J2EE container, something like Spring.

Look at avalible documentantion and test cases and you'll see that it is easy

  Message #181116 Post reply Post reply Post reply Go to top Go to top Go to top

Main advantage is droppring JSP ;)

Posted by: Eugene Lucash on August 12, 2005 in response to Message #180987
SUBJ

  Message #181529 Post reply Post reply Post reply Go to top Go to top Go to top

ASP.Net is much better than JSPs

Posted by: Anthony Berglas on August 17, 2005 in response to Message #180964
JSPs are basically like the old Microsoft ASPs which came from CGI. You are writing a program that outputs HTML.

ASP.NET uses a different model. The HTML with tags embedded actually produces an object graph. So something like

  <asp:DropDownList ... RunAt="server">

does not directly output anything, it creates a node, very similar to the way that the windows client does. There is a Form object, which has a list of subcomponents etc.

This means that one can write have events related to components that can affect other component's values. The actual HTML is only generated during rendering at the end.

And creating a new tag such as MyDropDownList is just a matter of extending an appropriate class. Very easy compared to anything to do with Taglibs or Tapestry.

The also have avoided the urge to create yet another programming language like JSTL expressions. The tags just create the object graph, everthing else is neatly in VB C#.

And yes, you can separate the business logic from the presentation.

I would suggest that the Java world could learn from .Net in this regard. It seems that the Evil Empire has done a fairly good job here (Yes, there are also horrors such as viewstate etc... I am talking about the basic object graph building. Clean and elegant.)

Anthony

  Message #181530 Post reply Post reply Post reply Go to top Go to top Go to top

ASP.Net is much better than JSPs

Posted by: Anthony Berglas on August 17, 2005 in response to Message #181529
(I should add that JSF does build an object model of sorts, but in parallel to the rendering, not a separate pass. See

http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

There is no JSP/JSF confusion in ASP.NET. Just the object graph.
)

  Message #181532 Post reply Post reply Post reply Go to top Go to top Go to top

ASP.Net is much better than JSPs

Posted by: Jacob Hookom on August 17, 2005 in response to Message #181530
(I should add that JSF does build an object model of sorts, but in parallel to the rendering, not a separate pass. Seehttp://www.onjava.com/pub/a/onjava/2004/06/09/jsf.htmlThere is no JSP/JSF confusion in ASP.NET. Just the object graph.)

Which is why Facelets works the way it does. It builds a mutable component model which is able to later, render itself.

  Message #181542 Post reply Post reply Post reply Go to top Go to top Go to top

Documentation for Facelets

Posted by: Anthony Berglas on August 17, 2005 in response to Message #181532
I'd suggest you spend a little time with documentation instead of coding. Your blog entry is not enough(!). Documentation that clearly states what you are trying to do will help sell your project.

  Message #181545 Post reply Post reply Post reply Go to top Go to top Go to top

Documentation for Facelets

Posted by: Jacob Hookom on August 17, 2005 in response to Message #181542
I'd suggest you spend a little time with documentation instead of coding. Your blog entry is not enough(!). Documentation that clearly states what you are trying to do will help sell your project.

http://facelets.dev.java.net/nonav/docs/dev/docbook.html

?

  Message #196610 Post reply Post reply Post reply Go to top Go to top Go to top

Abandoning tools?

Posted by: Dennis Pettersson on January 09, 2006 in response to Message #180888
When you claim there are no good tools. What about Exadel Studio Pro?
I more or less looked at all the WYSIWYG tools available, but this clearly stands out in comparison in my opinion.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 2

Reza Rahman continues to explore the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (January 21, Article)

Ted Neward Q&A: What you must know about JavaScript, Scala and more

Ted Neward is an independent consultant specializing in high-scale enterprise systems, and an authority in Java and .NET technologies. He is the author and co-author of several books, including Effective Enterprise Java. At TheServerSide Java Symposium in March, he will be presenting sessions on pragmatic architecture, ECMAScript and Scala. (January 15, Article)

Developers split on open sourcing Java

Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language. (November 24, Article)

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map