-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navCommandLink works different: partialResponse #501
Comments
I think if you want it to redirect you need to add I'm not entirely sure this is the problem but try it out at least |
You could also try to set |
@MitchTalmadge: no, I didn't want to redirect, I just wanted to get a complete html page as answer to my request as the commandButton does. @stephanrauh: confirmed this behaviour as a bug. I added ajax="false" attribute to all my navCommandButtons: <b:navBar fluid="true">
<b:navbarLinks pull="left">
<b:navCommandLink action="#{...}" active="#{...}" value="#{...}" ajax="false" />
...
</b:navbarLinks>
</b:navBar> but the answer is still a partial response like that: <?xml version="1.0" encoding="UTF-8"?>
<partial-response id="j_id__v_0">
<changes>
<update id="javax.faces.ViewRoot">
<![CDATA[<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="viewport" content="width=device-width, initial-scale=1"/> navBar and navbarLinks do not have an ajax attribute to deactivate partial response, do they? |
Oh, I forgot to mention... this is about bootsfaces 0.9.1 from maven... <dependency>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>0.9.1</version>
</dependency> |
NavBar and NavBarLink are simple links. Hence they don't support AJAX. And they can't call an action or actionListener.
|
Ok, I thought that way. But navCommandLink does support ajax="false" and an action attribute, but it gives back a partial response anyway. What else do you expect from me (as status is still in waiting for user answer)? As I've written above, this seems to be a bug... |
This noon, I used the e-mail interface to answer to your last comment, so I couldn't update the tags. Currently, we don't need further information from you. It's just that I didn't carry my laptop to lunch, so I had to use the tiny cell phone keyboard. |
Ok, thanks for the information. |
so far there has been no post here for about a month... can I assist in anything to help you find the bug and reduce the time until it is fixed? |
Yes, that would be nice. You can clone the BootsFaces-OSP repository and import it as a Maven project to your IDE. After that, you can debug BootsFaces. Most likely, the bug is in the class |
created a pull request (#528) with the part of the code that I suppose to be responsible for the bug. But after all, I'm still not sure with that and would like you to have a look at it. |
The page http://showcase.bootsfaces.net/layout/navigationAndAJAX.jsf is broken with the source code version of BootsFaces. |
I can confirm that in current release 0.9.2-SNAPSHOT this bug is resolved. Great work, thanks a lot! |
Using navCommandLink that way:
gives me that response:
Why do I not get a complete new page as response as when I use
? This is what I would expect...
The problem is, that after getting the partial response, all my b:panel objects do not toggle anymore, so sth. gets damaged on that partial response thing. Is there a way to make the navCommandLinks return a complete page instead of a partial response (didn't find an attribute for that now)?
The text was updated successfully, but these errors were encountered: