• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JSF not working with Struts Tiles

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am developing an application in JSF.
During the development I came to know about Tiles Layout Components .
I was able to develop a sample application in JSP2.0 using tiles. But was not able to use JSF components for them.

Please could somebody help me??
 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use Struts Tiles with JSF and I dont have any problems.

I can offer more help if you show me the error message / stack trace?
 
Dushyant Agarwal
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply....
I was able to run tiles with JSF with some help;

Nevertheless, I want some help: I want to implement a functionality in which the different pages that are displayed within the tiles can be refreshed without the JSF page into which the tiles are shown.being refreshed...sort of the thing that we do using <framset> in HTML....

....that reminds me... Can we use <framset>in a JSF page in any way.

Also I want to know how can I provide navigation between the tiles pages.
That is to say if I put a command button in one of the tiles then how can I navigate to different tile.

I would also want to know if could use Apache Trinidad's Partial Page Refreshment for this in some way(To refresh the different columns of a table in which JSF pages may have been provided using jsp:include)???
 
Saloon Keeper
Posts: 24283
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A JSF page - or a tiled page made up of JSF sub-pages - cannot be updated piecemeal. The reason for that is that web browsers don't actually understand JSF or tiles and thus eveything has to be translated to HTML and transmitted via HTTP. The limitations are not Java-related, they're related to HTML and HTTP.

However, you're on the right track. The 2 ways you CAN update partial pages are by using HTML frames (since they carve your browser's window up into sub-browsers) and/or by using AJAX-style operations.

So the real question is "can I find JSF/tiles components that will support frame or AJAX updating?" and the answer is "probably yes, but I don't know specific ones".

As far as it goes, I've been doing almost exactly that recently. I'm in the middle of developing a Google Maps JSF control, which updates its little div whenever you drag the maps around with a mouse, It's about half done, but looking pretty good, so I know it can be done for more general things as well.
 
Dushyant Agarwal
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for replying to my query....
But my question still stands .....
Whether can we use Apache Trinidad components (by using partial Triggers )for such type of updation or not???
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic