voyent
panelPopup causes other components to stop working  XML
Forum Index -> Development Build Feedback
Author Message
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


Since moving the the RC releases I'm having problems with panelPopups.

When a popup is displayed and then closed by changing the rendered value for the backing bean then other components on the page stop working.

There are no errors reported by firebug.

Has anyone else encountered this?

ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Hi,

Try switching the visible=false to hide the popup.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


Is this a bug?

If its visibility is turned off rather than the rendering does that have an impact on the size/speed of the loaded page?

I have a lot of different popups that are not rendered by default.

Thanks

-Lee
andreiij

Joined: 15/Feb/2009 00:00:00
Messages: 35
Offline


I can confirm there is an issue. I was switching from beta2 to RC2.
All clicking on input components stopped working (directly on new session)

After I removed some subbviews containg panel popups, it worked again.

This was a bit irregular. I got the inputs to work rarly (with the panel popups subview incl) by redeploying/restarting tomcat/clearing browser cache/restarting browser...

If needed by developers, I may track down exact element causing this.
andreiij

Joined: 15/Feb/2009 00:00:00
Messages: 35
Offline


@Lee, A second thing you might try.

After I upgraded to RC2, my ApplicationBean was not instantiated at all, only session scoped beans. I could, however, trigger it by getting a field in the applicationBean:

public SessionBean() {
//constructor
BeanUtil.getApplicationBean.getAField();
}
andreiij

Joined: 15/Feb/2009 00:00:00
Messages: 35
Offline


I still had some problems that submit stopped working.
Problem dissaperad when setting deltasubmit to false. Whats your configuration for the property?

Guess deltasubmit=true is not very wise in development...
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


I dont have that value set
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Hi,

It seems the change in behaviour where the modal PanelPopup is not removed properly if it's rendered attributed is set to false before it's visible attribute is set to false is a regression from this set of changes: http://jira.icefaces.org/browse/ICE-5652.

A workaround is to always set "visible=false" on the modal panelPopup prior to setting rendered=false.

We'll look into this further, but it's not clear that we can improve things for 2.0.0 at this point.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


Is it as simple as adding a visible tag and setting the same value as my rendered tag:

Code:
  <ice:panelPopup visible="#{BusinessInfoBean.showBusinessFinder}" rendered="#{BusinessInfoBean.showBusinessFinder}" autoCentre="true" modal="true">
   


or do I need to create a separate visible attribute for every popup?

Thanks

-Lee
arran.mccullough


Joined: 02/Jan/2007 00:00:00
Messages: 426
Offline


The workaround is to just use the visible tag and not the rendered tag for the ice:panelPopup component. So your code would be:

Code:
 <ice:panelPopup visible="#{BusinessInfoBean.showBusinessFinder}" autoCentre="true" modal="true">
 


Arran McCullough
Technical Support Engineer
ICEsoft Technologies Inc.
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


Ok,

this is odd.
My rendered flag is false in my backing bean but now I've changed the rendered attribute to visible every one of my popups is appearing when the application is launched.

I know you guys are busy but any ideas on what might cause that?

grubin

Joined: 10/Dec/2011 07:44:13
Messages: 19
Offline


I'm interested in Axelsoft's last question. This is exactly what I'm seeing. Was there ever a resolution for it?
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team