question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Layout: updates don't work properly

See original GitHub issue

I’m implementing an SPA (single page application) using the pe:layout component. I’m using Primefaces 8 and Primefaces extensions 8 So the content of the layoutPanes need to be updated using ajax requests while the application runs. So the whole construct looks more or less like that:

<h:form id="mainForm">
  <pe:layout fullPage="true" id="layout">
    <pe:layoutPane position="north">
    </pe:layoutPane>
    <pe:layoutPane position="west">
    </pe:layoutPane>
    <pe:layoutPane position="center">
      <ui:include src="#{indexView.centerView}" />
    </pe:layoutPane>
</h:form>

So now I want to update the center pane. I do that by updating the payoutPane element:

<p:menuitem value="User"
  actionListener="#{indexView.showSettingsUser}"
update=":mainForm:center" />

When I do that, the center pane gets updated. But it gets moved to the top of the screen. Beeing displayed over the north pane.

So I try to update the whole layout component:

<p:menuitem value="User"
  actionListener="#{indexView.showSettingsUser}"
update=":mainForm:layout" />

When I do that, absolutely nothing happns. The only way that seems to work is updating everything at once:

<p:menuitem value="User"
  actionListener="#{indexView.showSettingsUser}"
update=":mainForm" />

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
yennorcommented, Mar 13, 2020

sorry. my fault… forgot to add the new files. they are commited now.

1reaction
yennorcommented, Mar 13, 2020

you’re way too fast in replying 😉.

I’ve just noticed. When I update everything (the whole form) and there is a west layoutPanel. Then It will be at once rendered between north and center panel, instead of being to the left of the center panel.

I’ve tried out the workaround, using the outputPanel. Like that it works like a charm. 😃 I should manage to provide a test case with the test case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My entire layout has changed after recent update……WHY?
I understand you have a problem with your entire layout has changed after recent update. Please check if you're in tablet mode.
Read more >
2.3.4: Update "Custom Layout Update" doesn't work #27942
4: Update "Custom Layout Update" doesn't work #27942. Issue: needs update Additional information is require, waiting for response not-confirmed ...
Read more >
Layout Viewport not updating? - SketchUp Community
There are two common reasons, though. First, the scene properties have been modified for the viewport in LayOut. This modification overrides the ...
Read more >
Window layout problems after update - Community - Notepad++
Window layout is all messed up after updating to 7.9. 5 - can't figure out what's going on… Tried blowing away all local...
Read more >
How to Fix Elementor after update - quick guide - YouTube
How to Fix Elementor after an update, sometimes when Elementor updates the page layout and images look broken.A quick guide on how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found