[
https://issues.jboss.org/browse/RF-8735?page=com.atlassian.jira.plugin.sy...
]
Fabian Schlier commented on RF-8735:
------------------------------------
Another possible workaround is wrapping the {{rich:modalPanel}} in a custom facelets
component. It seems that this changes state saving mechanism, which leads to a correct
save/restore of the {{resizable}} attribute.
The components code could look like this: (include additional attributes as needed)
{code:xml}
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich">
<rich:modalPanel id="#{id} height="#{height}"
width="#{width}" resizeable="#{resizeable}">
<ui:insert />
</rich:modalPanel>
</ui:composition>
{code}
And it need to be defined in a *.taglib.xml file this way:
{code:xml}
<facelet-taglib>
<
namespace>http://your.domain.com/jsf/example</namespace>
<tag>
<tag-name>modalPanel</tag-name>
<source>path/relative/to/taglibfile/modalPanel.xhtml</source>
</tag>
</facelet-taglib>
{code}
The tag could be used just like the richfaces tag. Remember to import your namespace and
use the correct prefix in code!
modalPanel resizable problem patch
----------------------------------
Key: RF-8735
URL:
https://issues.jboss.org/browse/RF-8735
Project: RichFaces
Issue Type: Patch
Security Level: Public(Everyone can see)
Components: component-output
Affects Versions: 3.3.3.Final
Reporter: Ilya Shaikovsky
Fix For: 3.Future
Attachments: UIModalPanel.java.zip
Nick customer proposed patch for the next problem:
"When setting width/height attributes on rich:modalpanel as well as setting
resizeable="false" - the modal panel is still resizable.
If i don't specify the width/height attributes and just set autosize="true"
with resizeable="false" the modal panel is not resizeable (Using RichFaces
3.3.3).
Is there any way to set the modal panel size and still make it not resizeable?
Is this a known issue?
Ori"
Need to verify and probably apply if confirmed
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira