GithubHelp home page GithubHelp logo

Comments (19)

Rapster avatar Rapster commented on July 27, 2024

Next time, even though your problem is explained in the forum, few lines explaining your problem would be better. It's an issue tracker, community expects to read issues and not random feedbacks of your problem 😉

from primefaces-extensions.

jxmai avatar jxmai commented on July 27, 2024

via 9c8a1f1

from primefaces-extensions.

pzoli avatar pzoli commented on July 27, 2024

from primefaces-extensions.

Rapster avatar Rapster commented on July 27, 2024

You can create a Pull Request 😉

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

In our showcase project you can simply create a PR following these instructions: https://help.github.com/articles/creating-a-pull-request/

from primefaces-extensions.

pzoli avatar pzoli commented on July 27, 2024

from primefaces-extensions.

pzoli avatar pzoli commented on July 27, 2024

from primefaces-extensions.

Rapster avatar Rapster commented on July 27, 2024

I'll the do the changes in core (although i'd like to find a better way to restore these properties as we can't simply add a new field every time an unsupported property is used (e.g disabled, readonly, style, styleClas etc.). I don't think showcase is needed though

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

Sorry I think I have to reopen this. It appears this has now broken the FluidGrid. I have a FluidGrid with disabled field. When I updated the form that contains the FluidGrid is leaving my component disabled even though in PF 6.2.4 it was re-evaluating properly to enabled. So its restoring the state. They both extend this AbstractDynamicData which is where this change was made.

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

To elaborate say I had this FluidGrid dyna item.

    <pe:fluidGridItem type="select" styleClass="select">  
        <div class="dynaFormLabel">  
            <p:outputLabel for="menu" value="#{data.label}"/>  
        </div>  
        <p:selectOneMenu id="menu" value="#{data.value}" required="#{data.required}" disabled="#{fluidGridDynaFormController.randomDisabled}">  
            <f:selectItems value="#{data.selectItems}"/>  
        </p:selectOneMenu>  
    </pe:fluidGridItem> 

once the form is submitted even if my disabled="" EL evaluation changes the component is always keeping the original state of disabled even after updates which is bad. I am trying to re-enable an item but once its set it never gets reset.

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

I have reverted the fix for now.

from primefaces-extensions.

Rapster avatar Rapster commented on July 27, 2024

Can you provide a sample please? I need to do something similar than this ticket

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

@Rapster You need a sample of how this fix broke the FluidGrid? Like a PrimeFaces Test case?

from primefaces-extensions.

Rapster avatar Rapster commented on July 27, 2024

Yes please

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

OK will post it here when complete so you can see it.

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

Attached:
pfe-571.zip

Run the demo and you will see item3 is disabled by default. When you press "Save" button it should re-enable item3 but it does not, it remembers its disabled state.

If you change the pom.xml to PFE 6.2.4 you will see its working fine.

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

Also I discovered Primefaces has a SavedState class that looks like it duplicates (or was moved from PFE) as our SavedEditableState.

from primefaces-extensions.

melloware avatar melloware commented on July 27, 2024

switched to extend core PF SavedState

public class SavedEditableValueState extends SavedState {

from primefaces-extensions.

tandraschko avatar tandraschko commented on July 27, 2024

If we fix this in the future, please also try a case that the disabled flag could reference the current var from the dynaForm.

from primefaces-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.