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.
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)
Joined: Oct 14, 2007
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)???
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.
Joined: Oct 14, 2007
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???