Skip to content
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

How make a button that update 2 or more forms? #40

Open
karlapdiaz opened this issue Nov 26, 2015 · 3 comments
Open

How make a button that update 2 or more forms? #40

karlapdiaz opened this issue Nov 26, 2015 · 3 comments

Comments

@karlapdiaz
Copy link

How make a button that update 2 or more forms????
In PrimeFaces just put styleClass="mystyle" and to the commandButton update="@(.mystyle)"
But how I do in Bootsfaces?

@stephanrauh
Copy link

From a technical point of view, I'm sure you can do the same with BootsFaces 0.8.0 and above. We support the update="@(.mystyle)" syntax, too.

However, you should be aware you're using a feature that's not supported by HTML. Even worse, you're using a feature that's forbidden by the HTML specification. HTML doesn't allow you to submit multiple forms with a single click. So you build your application on weak foundations. In the case of BootsFaces I'm sure this won't break anytime soon, but it's perfectly possible that the PrimeFaces team fixes the bug in a future version.

@stephanrauh
Copy link

Oh, and please report your error in the open-source-project (BootsFaces-OSP).

@hubertgrzeskowiak
Copy link

This is how I'm doing it with plain old JSF:

                <h:commandButton id="reloadContentButton" value="reload">
                    <f:ajax execute="@form" render="applicationEmergencies hostEmergencies"
                            onevent="onContentReload" />
                </h:commandButton>

The onContentReload function can be left out. I'm using it to log a message to console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants