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

Liferay 7/DXP: navigation menu doesn't disable SPA #3256

Open
ebruchez opened this Issue Jun 13, 2017 · 4 comments

Comments

2 participants
@ebruchez
Collaborator

ebruchez commented Jun 13, 2017

Right now, we disable SPA support. This works for Form Runner navigation, but clicking on the top-level Liferay page menu doesn't. It is probably a Liferay bug. I am not sure if we can work around it, or if we will have to wait until Liferay fixes it or until we implement #3255.

@ebruchez ebruchez changed the title from Liferay 7: menu doesn't disable SPA to Liferay 7/DXP: menu doesn't disable SPA Jun 13, 2017

@ebruchez ebruchez changed the title from Liferay 7/DXP: menu doesn't disable SPA to Liferay 7/DXP: navigation menu doesn't disable SPA Jun 14, 2017

@ebruchez

This comment has been minimized.

Show comment
Hide comment
@ebruchez

ebruchez Jun 14, 2017

Collaborator

Talking about this navigation menu:

screen shot 2017-06-13 at 10 26 53 pm

Collaborator

ebruchez commented Jun 14, 2017

Talking about this navigation menu:

screen shot 2017-06-13 at 10 26 53 pm

@ebruchez

This comment has been minimized.

Show comment
Hide comment
@ebruchez

ebruchez Jun 14, 2017

Collaborator

Looking at the resulting HTML DOM, I notice that the inline Orbeon Forms <script>s are missing.

Because this is the first load of an Orbeon page, this might be fixable with #3254 (so without enabling full SPA support in Orbeon Forms).

Collaborator

ebruchez commented Jun 14, 2017

Looking at the resulting HTML DOM, I notice that the inline Orbeon Forms <script>s are missing.

Because this is the first load of an Orbeon page, this might be fixable with #3254 (so without enabling full SPA support in Orbeon Forms).

@ebruchez ebruchez added this to Backlog in Orbeon Forms 2017.2 Jun 26, 2017

@fbonin

This comment has been minimized.

Show comment
Hide comment
@fbonin

fbonin Jul 12, 2017

If this can help, you can disable the SPA in Liferay for a link using this :

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/automatic-single-page-applications#configuring-spa-system-settings

To disable SPA for a form or link follow these steps:

Add the data-senna-off attribute to the element.

Set the value to true.

For example <a data-senna-off="true" href="/pages/page2.html">Page 2</a>

That’s all you need to do to disable SPA in your app.

This can be done in a theme.

fbonin commented Jul 12, 2017

If this can help, you can disable the SPA in Liferay for a link using this :

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/automatic-single-page-applications#configuring-spa-system-settings

To disable SPA for a form or link follow these steps:

Add the data-senna-off attribute to the element.

Set the value to true.

For example <a data-senna-off="true" href="/pages/page2.html">Page 2</a>

That’s all you need to do to disable SPA in your app.

This can be done in a theme.

@ebruchez

This comment has been minimized.

Show comment
Hide comment
@ebruchez

ebruchez Oct 9, 2017

Collaborator

Tip from forum:

It works by adding data-senna-off="true" to the link, by the way.

Collaborator

ebruchez commented Oct 9, 2017

Tip from forum:

It works by adding data-senna-off="true" to the link, by the way.

@ebruchez ebruchez removed this from Backlog in Orbeon Forms 2017.2 Dec 1, 2017

@ebruchez ebruchez added this to To Review in Orbeon Forms 2018.1 Dec 1, 2017

@ebruchez ebruchez removed this from To Review in Orbeon Forms 2018.1 May 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment