Skip to main content

embedded in tabs with jsp for content issue

4 replies [Last post]
jersingh
Offline
Joined: 2006-02-09
Points: 0

Hi All,

Placing in a jsp file that is used as tab content via block embedded in welcomeJSF.jsf, jsf navigation operates as expected (and the dojo content shows up.)

Is this a bug, or functionality yet to be added? (I suppose it could be the programmer.) :)

Has anyone else seen this?

Thanks,
Joe

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Instead of calling JSF this way try:

This should work for you better but this could be a problem.

Could you send the full JSP/JSF page you are having issues with?

jersingh
Offline
Joined: 2006-02-09
Points: 0

Hi Greg

I've set up a quick html page with links to the jsp's, war file and netbeans project here:

http://www.nmda.nmsu.edu/download/temp.html

I'm using myfaces (1.1.5 snapshot) and as such, their web.xml uses "*.jsf" servlet mapping, and that is why I reference the tab content jsp's the way I do. I haven't tried to change the mapping in this project but I have tried tabbed content in just a generic netbeans project with a "/faces/*" mapping and still the same results as I describe in the above post.

I'm not sure what your preference will be on the downloading. If I could be so bold as to suggest the netbeans project (and use the supplied myfaces jar's) that would show you straight away what I'm seeing.

I'm also running 1.5.0_11 java.

You can always email me at jersingh@gmail.com if you wish.

Let me know when you no longer need the download page up so I can remove that off our sight.

Thanks,
Joe

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi Joe,

The war file worked great. So just so to go over conceptually what is going on. What happens when you use the tabs /containers is that you are taking the content from one JSF based page and injecting that into the DOM of the current page. This means that the navigation that applied to the page you are trying to include get's applied to the entier page.

So when I load individual elements of the page such as:

http://localhost:8080/jMaki-myfaces/tab2.jsf

and click on something the page navigates. I suspect you want the same bahivor but in the conext of a tab?

If this is what you want you will need to use a dynamic container which can operate as an iframe allowing for page to page naigation in a single tab.

To do this you can do the following.

Opition one :

Instead of mapping to http://localhost:8080/jMaki-myfaces/tab1.jsf in the tab map to a JSP page that contains an

jersingh
Offline
Joined: 2006-02-09
Points: 0

Greg,

I really appreciate your effort, and I probably wasn't as clear in my explanation as I could have been concerning the navigation.

I need the link inside the tab to navigate the entire "main" app frame to the new page, in this, navigate to page2.jsp, not replace just the contents of the tab with page2.jsp.

Please don't give up on me. :) It's oh so close.

I'm certainly indebted so far,
Joe