aspose file tools*
The moose likes JSF and the fly likes JSF not working with Struts Tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF not working with Struts Tiles" Watch "JSF not working with Struts Tiles" New topic
Author

JSF not working with Struts Tiles

Dushyant Agarwal
Ranch Hand

Joined: Oct 14, 2007
Posts: 75
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??
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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?


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Dushyant Agarwal
Ranch Hand

Joined: Oct 14, 2007
Posts: 75
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)???
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Dushyant Agarwal
Ranch Hand

Joined: Oct 14, 2007
Posts: 75
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???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF not working with Struts Tiles