[JBoss JIRA] Created: (RF-10967) Drag'n'Drop does not work with PARTIAL_STATE_SAVING FALSE
by Stephan Meisinger (JIRA)
Drag'n'Drop does not work with PARTIAL_STATE_SAVING FALSE
---------------------------------------------------------
Key: RF-10967
URL: https://issues.jboss.org/browse/RF-10967
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-drag/drop
Affects Versions: 4.0.0.Final
Environment: tomcat 6.0.32
RichFaces 4.0.0-Final
Reporter: Stephan Meisinger
if partital state saving is off
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>
droping of items does noth work and causes a NullPointerException
at org.richfaces.event.MethodExpressionDropListener.processDrop(MethodExpressionDropListener.java:47)
at org.richfaces.event.DropEvent.processListener(DropEvent.java:74)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:777)
at org.richfaces.component.AbstractDropTarget.broadcast(AbstractDropTarget.java:122)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
... 18 more
imho MethodExpressionDropListener should be serializable, otherwise methodExpression can't be set by the SafeStateHolder.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-8084) Panelbar does not expand with more than 4 panelBarItems
by Alan (JIRA)
Panelbar does not expand with more than 4 panelBarItems
-------------------------------------------------------
Key: RF-8084
URL: https://jira.jboss.org/jira/browse/RF-8084
Project: RichFaces
Issue Type: Bug
Components: component-menu
Affects Versions: 3.3.2.SR1, 3.3.2.GA, 3.3.2.CR1, 3.3.1
Environment: Bot Mac and Windows. Both IE and FF.
Reporter: Alan
Adding a rich:panelBar with more than 4 panelBarItems causes the panelBarItems to stay hidden.
Under Mac and FF 3.5 the pannels do not open anymore. If your zoom (Cmd +), the panels open again.
Under Windows and IE 8 you need to zoom one level (Ctrl +).
In the panelbar.js (showSlide function) this piece of code contains the problem.
slide.content.style.height=(h>0?h:0)+"px";
if (h<=1 && (this.panel.style.height=="" || this.panel.style.height.indexOf("%")!=-1)) {
this.panel.style.height="";
slide.content.style.height="100%";
}
h is the contentHeight. 'Normally' this returns a value which is <=1. But for some zoom levels and more than 4 panelBarItems this value gets bigger. This causes the height being set to 2 or 3 and the panelBarItem looks clossed.
This is probally caused by some rouding problem. A difference between offsetHeight and clientHeight?
Locally I fixed the problem to disable the check and always set the height of the slide.content to 100%.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-4366) InputNumberSpinner: Locale will not be used for number input
by Gerrit Brehmer (JIRA)
InputNumberSpinner: Locale will not be used for number input
------------------------------------------------------------
Key: RF-4366
URL: https://jira.jboss.org/jira/browse/RF-4366
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Firefox 3.0.1
Reporter: Gerrit Brehmer
Priority: Critical
Hi,
if i want to display a number with 1 fraction digit (like with f:convertNumber) and set step to "0.5" it will always use the english notation "." for output, but jsf use the locale (e.g. de) and convert my number "5.5" -> "55" before setting to my backing bean. And if i want to write the german notation into the input field with "," the javascript i think will drop my fraction digits before posting values. if I use "en" locale all functions properly.
Bye
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-9485) IE9 Beta - AJAX broken
by Andrew May (JIRA)
IE9 Beta - AJAX broken
----------------------
Key: RF-9485
URL: https://jira.jboss.org/browse/RF-9485
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: browser compatibility
Affects Versions: 3.3.3.Final, 3.3.2.SR1
Environment: Windows Vista SP2 (Virtual PC VM), IE9 Beta
Reporter: Andrew May
In the Rich Faces Demo (3.3.3 Final) there are a couple of errors shown in the JavaScript Console in IE9, and the Ajax demos do not work.
On loading a section:
SCRIPT5007: 'undefined' is null or not an object - framework.pack.js.jsf, line 1870 character 65
On trying one of the AJAX demos (e.g. the CommandButton demo):
SCRIPT16386: No such interface supported - framework.pack.js.jsf, line 2373 character 3
In our applications (3.2.SR1), we see an error for every Ajax request:
SCRIPT16386: No such interface supported - 3_3_2.SR1org.ajax4jsf.javascript.AjaxScript, line 120 character 1
For both the SCRIPT16386 errors, the JavaScript is assigning A.outerHTML = new XMLSerializer().serializeToString(C)
I believe that this is the first version of IE9 to include XMLSerializer.
I don't know enough about XMLSerializer to know whether this is an IE9 issue or a RichFaces issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-11090) rich:collapsibleSubTable cannot be nested
by Val Blant (JIRA)
rich:collapsibleSubTable cannot be nested
-----------------------------------------
Key: RF-11090
URL: https://issues.jboss.org/browse/RF-11090
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Final
Reporter: Val Blant
When _<rich:collapsibleSubTable />_ s are nested, the following error occurs:
{quote}
This page contains the following errors:
error on line 202 at column 74: Opening and ending tag mismatch: tbody line 0 and tr
Below is a rendering of the page up to the first error.
{quote}
The page is rendered up to the nested _<rich:collapsibleSubTable />_.
This error happens b/c nested sub tables render an extra _</tr>_ element after the nested subtable row.
I was able to work around the problem by making a small tweak to _CollapsibleSubTableRenderer_. The lines I added or changes are marked with *"// fix line"* comment.
{code:title=FixedCollapsibleSubTableRenderer.java|borderStyle=solid}
/**
* Allows nested subTables to be rendered properly
*/
@ResourceDependencies({
@ResourceDependency(name = "jquery.js"),
@ResourceDependency(name = "richfaces.js"),
@ResourceDependency(library="org.richfaces", name = "collapsible-subtable.ecss"),
@ResourceDependency(library="org.richfaces", name = "collapsible-subtable.js")
})
public class FixedCollapsibleSubTableRenderer extends CollapsibleSubTableRenderer {
@Override
public void encodeRow(ResponseWriter writer, FacesContext facesContext, RowHolderBase holder) throws IOException {
RowHolder rowHolder = (RowHolder)holder;
Row row = rowHolder.getRow();
putRowStylesIntoContext(facesContext, rowHolder);
rowHolder.setRowStart(true);
Iterator<UIComponent> components = row.columns();
if (rowHolder.isUpdatePartial()) {
partialStart(facesContext,((AbstractCollapsibleSubTable) row).getRelativeClientId(facesContext) + ":b");
}
int columnNumber = 0;
boolean isSubtable = false; // fix line
while (components.hasNext()) {
UIComponent component = components.next();
if(component.isRendered()) {
if(component instanceof UIColumn ) {
component.getAttributes().put(COLUMN_CLASS, getColumnClass(rowHolder, columnNumber));
encodeColumn(facesContext, writer, (UIColumn)component , rowHolder);
columnNumber++;
} else if (component instanceof AbstractCollapsibleSubTable) {
if(component.isRendered()) {
isSubtable = true; // fix line
encodeRowEnd(writer);
}
if ( ((AbstractCollapsibleSubTable) component).isExpanded() ) {
component.encodeAll(facesContext);
}
rowHolder.setRowStart(true);
}
}
}
if ( !isSubtable) encodeRowEnd(writer); // fix line
if (rowHolder.isUpdatePartial()) {
partialEnd(facesContext);
}
}
}
{code}
This renderer needs to be registered in _faces-config.xml_:
{code}
<render-kit>
<renderer>
<component-family>org.richfaces.Data</component-family>
<renderer-type>org.richfaces.CollapsibleSubTableRenderer</renderer-type>
<renderer-class>bla.FixedCollapsibleSubTableRenderer</renderer-class>
</renderer>
</render-kit>
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-10994) DnD: scripts not getting loaded via ajax
by Ilya Shaikovsky (JIRA)
DnD: scripts not getting loaded via ajax
----------------------------------------
Key: RF-10994
URL: https://issues.jboss.org/browse/RF-10994
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-drag/drop
Affects Versions: 4.0.0.Final
Reporter: Ilya Shaikovsky
<rich:tree value="#{aaa.rootNode}" nodeType="#{node.type}"
var="node">
<rich:treeNode type="t1">
<a4j:outputPanel layout="block">
<rich:dropTarget acceptedTypes="file"
dropListener="#{aaa.process}" />
<h:outputText value="#{node.label}" />
</a4j:outputPanel>
</rich:treeNode>
<rich:treeNode type="t2">
<a4j:outputPanel layout="block">
<rich:dragSource type="file" />
<h:outputText value="#{node.label}" />
</a4j:outputPanel>
</rich:treeNode>
</rich:tree>
Tree by default using ajax mode. So when you expanding nodes -leafs which getting loaded should be draggable. But there is no draggable script resource so you could see JS errors instead saying that Draggable si not a constructor.
If change toggleType to client - works fine. If add any draggable component to the page - it also starts works as scripts already inplace.
(should be easier to reproduce with tab panel or just conditionally rendered panel for example).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (RF-10947) rich:dragSource doesn't work after being rerendered via ajax
by Adrian Meredith (JIRA)
rich:dragSource doesn't work after being rerendered via ajax
------------------------------------------------------------
Key: RF-10947
URL: https://issues.jboss.org/browse/RF-10947
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-drag/drop
Affects Versions: 4.0.0.Final
Environment: mojarra 2.1.1 gf3.1
Reporter: Adrian Meredith
Drag Source is not applied
using the following code in a composite component
{code}
<a4j:outputPanel layout="block" styleClass="rf-ind-drag" >
<rich:dragSource type="webResult" dragValue="1"/>
<h:outputText value="works"></h:outputText>
</a4j:outputPanel>
<h:panelGroup id="content" layout="block" rendered="#{cc.attrs.rendered}" style="width: 100%; height:100%;">
<a4j:outputPanel layout="block" styleClass="rf-ind-drag" >
<rich:dragSource type="webResult" dragValue="1"/>
<h:outputText value="doesn't work"></h:outputText>
</a4j:outputPanel>
...
{code}
Basically the panel at the top is draggable, the one at the bottom (which is below the panelGroup) is not. Looking at the source its as though dragSource isn't even there as it is rendered without any reference to it (i.e. no ui-draggable class for example).
Drag and drop support was the main reason i'm using richfaces! so its very important to me as i one to drag rows from our table widget onto another panel for quick tagging of results. Unfortunately I'm gonna be away for the next two weeks but It'd be good to get more information on it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months