Comments (19)
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.
via 9c8a1f1
from primefaces-extensions.
from primefaces-extensions.
You can create a Pull Request 😉
from primefaces-extensions.
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.
from primefaces-extensions.
from primefaces-extensions.
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.
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.
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.
I have reverted the fix for now.
from primefaces-extensions.
Can you provide a sample please? I need to do something similar than this ticket
from primefaces-extensions.
@Rapster You need a sample of how this fix broke the FluidGrid? Like a PrimeFaces Test case?
from primefaces-extensions.
Yes please
from primefaces-extensions.
OK will post it here when complete so you can see it.
from primefaces-extensions.
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.
Also I discovered Primefaces has a SavedState class that looks like it duplicates (or was moved from PFE) as our SavedEditableState.
from primefaces-extensions.
switched to extend core PF SavedState
public class SavedEditableValueState extends SavedState {
from primefaces-extensions.
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)
- SunEditor: Allow Untouched HTML Option HOT 3
- Document Viewer: Default Download Name if StreamedContent Name is null
- InputOtp: Remaining Features HOT 2
- InputPhone: Not respecting inputStyleClass
- New Component: Markdown Editor HOT 7
- KeyNote: Update Reveal.js HOT 1
- InputPhone: intl-tel-input 20.0.4 Breaking Changes HOT 1
- Core: Refactor minification
- SunEditor: Edit Link not working when inside Dialog HOT 5
- Layout: errors while using CSP and MOVE_SCRIPTS_TO_BOTTOM at the same time HOT 7
- InputPlace: Support Azure Maps API HOT 1
- SunEditor: 2.46.0
- InputPhone: Upgrade to v21.2.6+ HOT 8
- MorphiaLazyDataModel: Allow user to specify FindOptions and CountOptions
- Sheet: Context Menu Doesn't Display After Sheet Update HOT 8
- InputPlace: Autocomplete list hidden behind a dialog
- Sheet: Dropdown for filtering columns is buggy when clicked after clicking a cell HOT 3
- InputPhone: destroying iti causes a NPE HOT 23
- DocumentViewer: Outdated PDF.js (CVE-2024-34342, CVE-2024-4367) HOT 5
- SunEditor: Configure HtmlSanitizer to keep table styles HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primefaces-extensions.