We have 2 applications: client application and admin application. User in admin application can change theme of client application.
If theme contains image and skin then it is doable. Image servlet is using for reading image from DB on the fly and skin is changing dynamically. I have already implemented it.
Task is more complicated: admin should have the possibility to customize ANY of the skin's parameters.
Environment: JSF 2, RichFaces 4.3
We can save parameters and create new skin file, but in that case we need to redeploy the client application (which is not the best solution - already implemented for custom skin).
We can change CSS on the fly, but it is big amount of classes (for all RichFaces components).
Question: can we replace the value of skin parameter (not CSS, ECSS, XCSS) on the fly?
How to replace the value of skin parameter on the fly in Richfaces 4.3?
453 views Asked by Vasil Lukach At
1
There are 1 answers
Related Questions in JSF
- Calling custom AuthenticationHandler from Faces bean throws IllegalStateException: Cannot change buffer size after data has been written
- Force security constraint managed 403 error when hitting restricted page with h:commandLink
- primefaces component id not found in update
- LazyDataModel, custom filter with search button
- How to use SelectManyCheckbox with ArrayList as HashMap value
- how to surpress logging of jsf "There are some unhandled FacesMessages"
- SelectManyCheckbox returns array of Object[] instead of ArrayList
- My dialog component on PrimeFaces can't render a list on first click
- How to retrieve posted data via FacesContext
- I'm using JSF and after a timer expires, I want to display a warning
- Why print result is blank?
- PrimeFaces centering searchbar on menubar
- JSF: p:fileUpload requiredmessage is apearing on click of another button
- How can I make sure that JSF works?
- Is there an already-made template project using Spring, JSF, PrimeFaces, SOAP and MySQL?
Related Questions in JSF-2
- JSF 2 Primefaces : On Ajax reponse I can see extra updates sent by server <update id="javax.faces.Resource"> and which cause my action skipped
- Understanding HTTP sessions in JSF as session attributres are going null unexpectedly while working actively on the application
- How to clear data from datatable using primefaces and java
- CDI Interceptor fires BEFORE HttpAuthenticationMechanism validates request
- JSF user lockout after X failed login attempts
- JSF ExceptionHandler - Response already committed in some cases
- Why am I getting Class NotFound Exception using data table with jsf
- Java Beans - how to ignore boolean isXXXXMethod in favor of BOOLEAN getXXXXMethod in JSF page?
- Input element created with h:inputText is not editable
- NullPointerException during initFaces of a MyFaces 2.0 application while migrating from WLS to Tomcat
- Primefaces 10 HTML styling in DataTable emptyMessage
- jsf2, primefaces 11, Component ID j_idt20 has already been found in the view
- Hide rows of datatable based on condition in JSF2
- How to generate and preview a presigned url of a file in jsf?
- commandLink action parameter not displayed in JSF2
Related Questions in RICHFACES
- Project upgrade with RichFaces getting compilation error for org.richfaces.event.DataScrollerEvent
- Richfaces 3.x - Spring Boot - Migrate web.xml
- Attribute render of richfaces doesn't work when migrating to jboss 7.4
- Exceptions when using RichFaces or PrimeFaces in Payara 6 with Java 11
- Migrating from RichFaces 3.3.1.GA to RichFaces 4.5.0.Final: what is the replacement for AjaxBehaviorRenderer and HeaderResourceProducer classes
- How to reset old value on selectOneMenu
- JSF 1.2 to upgrade to the latest version / Update to latest jQuery version
- Migration Richfaces -> Primefaces : rich:collapsibleSubTable migration
- Is there a way to replace richfaces tag "<a:queue" to primefaces and JSF 2.2
- deploy richfaces 4.5.17 web project in tomcat 10
- Why does richfaces 4.5.1 show components' IDs together with the label?
- rich:dataList vertically ordered between 2 columns
- Can we use <h:selectManyCheckBox> inside <rich:select>
- RichFaces 4.5.15 x panelBorderRadius
- java.lang.IllegalArgumentException: Cannot convert com...DocumentType@24 of type class com...DocumentType to class java.lang.Boolean
Related Questions in SKIN
- NPE for TableCell's skin
- Keep arrow of TitledPane visible, even when set to not collapsible
- DNN Created Theme Upload stuck after accepting license
- DNN: Failure File specified in the dnn could not be found in the zip file
- JavaFx Control Skin: layout the only child as if my control inherited from it
- Trying to add a Javascript widget to Wordpress but keeps saying SKIN ID is not set
- Why skinPercent() so slow?
- What replaced $this->html( 'headelement' ); in mediawiki skins?
- Why are these check boxes not showing with the correct text colour in Inno Setup with skins?
- CSS Oriented Object When Should I use it?
- libgdx holo-skin: no No SelectBoxStyle registered with name: default
- Logo in Mediawiki Medik Skin not visible in responsive version
- Android Studio: AVD options give the error "The skin directory does not point to a valid skin", but only when editing the virtual device
- How do I style the round videojs scrubber slider button
- How to Create a Custom Control in JavaFX
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Changing skin parameters on the fly is not supported.
The skinning works off of resources generated from the skin file (image and CSS files) during the build. You'd have to generate new resources every time you'd change a skin parameter.
You can create a bunch of skins in advance but if you want to allow the user to change every detail there is no easy solution.