adminfaces / admin-template

JSF responsive admin template based on Bootstrap and AdminLTE
https://adminfaces.github.io/docs/latest/#admin_template
MIT License
209 stars 101 forks source link

primefaces 7.0 issues with dependent selectOneMenus #175

Closed anumber8 closed 5 years ago

anumber8 commented 5 years ago
Issue Overview

Hello,

I've upgraded to the latest version of this template , 1.0.0, which brings in primefaces 7.0 and created a page with two selectonemenu where the selection of an item of one trigger the update by ajax of the contents of the second. what happend is that when i select the first one de results on the second appears on the left corner instead of the right position of the component which is in the content area by the right side. degrading to version 1.0.0-RC21 this issue doesn't happend.

Current Behaviour

An image may worth a thousand words

wrong behaviour

Expected Behaviour

correct behaviour

An image may worth a thousand words

How to reproduce

`

`
` ##### Additional Information * AdminFaces version: 1.0.0 * PrimeFaces version: 7.0 * JSF implementation: 2.3
rmpestano commented 5 years ago

Hi, downgrading PrimeFaces to 6.2 (and keeping admin-template 1.0.0) solves the issue?

Can you reproduce on starter project?

anumber8 commented 5 years ago

thanx for you fast reply. I will try to reproduce it on admin-starter, and post it asap.

rmpestano commented 5 years ago

Also, make sure you have clean browser caches when testing two different versions of admin theme and PrimeFaces.

rmpestano commented 5 years ago

Hi again @anumber8,

I've created a branch on admin-starter to reproduce this issue but it worked for me (subitens are loaded on demand):

nested-selects

the code is here, can you have a look and try to reproduce?

rmpestano commented 5 years ago

Alright just reproduced by deploying on a JavaEE 8 server (Wildfly 15.0.1):

Screenshot from 2019-04-19 22-22-36

To fix just upgrade OmniFaces to version 3.2

<dependency>
            <groupId>org.omnifaces</groupId>
            <artifactId>omnifaces</artifactId>
            <version>3.2</version>
        </dependency>    

Let me know if it solves the problem for you too.

anumber8 commented 5 years ago

Hi @rmpestano thank you once again. I did follow your suggestion and upgraded the Omnifaces to 3.2 and it did solve the issue and running on thorntail 2.4.0.

rmpestano commented 5 years ago

That's great! closing the issue, thank you for the feedback.