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.

New component: Scaffolding

See original GitHub issue

To work with skeletons more easily.

Example:

<pe:scaffolding ready="#{not empty scaffoldingController.data}" id="scaffolding"
                loader="#{scaffoldingController.fetchData(2000)}">
    <f:facet name="loading">
        <p:skeleton width="3rem" height="3rem" shape="circle"/>
    </f:facet>
    <f:facet name="ready">
        <p:avatar label="#{scaffoldingController.data}" size="large" shape="circle" />
    </f:facet>
</pe:scaffolding>

See also https://discord.com/channels/787967399105134612/787969344768311296/859078890022371348

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jepsarcommented, Jun 29, 2021

I wonder if we should also add some option to actually trigger and AJAX request after page load similar to how p:outputPanel has the deferred=true and deferredMode https://primefaces.github.io/primefaces/10_0_0/#/components/outputpanel?id=outputpanel

So that way it will automatically trigger what replaces the skeleton?

Yes! That will be the next step. That will make using skeletons a lot more useful in the JSF world.

2reactions
mellowarecommented, Jun 29, 2021

I actually like a combination of your two options. I like scaffolding but I like your facet names originally better.

<pe:scaffolding value="#{bean.dataObject}">
  <f:facet name="loading">Skeletons if dataObject is empty</f:facet>
  <f:facet name="ready">Actual UI if dataObject is loaded</f:facet>
</pe:scaffolding>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Scaffolding components in JSS apps - Sitecore Documentation
Create new components in JSS sample apps using the scaffolding script.
Read more >
How to automatically scaffold your React components and ...
How to automatically scaffold your React components and save time ... First, we need to identify the files we want to create.
Read more >
Scaffolding the code base - The newline Guide to React ...
Let's revisit the plan a bit. We are setting up a pipeline to supercharge our capability of producing design, turn it into code,...
Read more >
Scaffolding Components - ehsdb
Scaffold couplers are essentially the fundamental component that is used to assemble tube-and-coupler scaffolding. Tube-and-coupler scaffolding is defined as 'a ...
Read more >
Development: Generator - Open Web Components
Scaffold generators. These generators help you kickstart a new app or web component. They will create a new folder and set up everything...
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