[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, 7 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, 7 months
[JBoss JIRA] Created: (RF-11343) tooltip: does not work attached to parent input
by Dmitry Volkov (JIRA)
tooltip: does not work attached to parent input
-----------------------------------------------
Key: RF-11343
URL: https://issues.jboss.org/browse/RF-11343
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-output
Affects Versions: 4.0.0.Final
Environment: Firefox 6, IE 8, MyFaces 2.0.3, Websphere AS 8
Reporter: Dmitry Volkov
Tooltip does not work:
{code:xml}
<h:form>
<a4j:outputPanel id="pn">
<h:inputText>
<rich:tooltip>
Hello world!
</rich:tooltip>
</h:inputText>
<a4j:commandButton value="rerender" render="pn"/>
</a4j:outputPanel>
</h:form>
{code}
But works after ajax rerender("rerender" button click).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (RF-12195) Improve cdk:object scope
by Paul Dijou (JIRA)
Paul Dijou created RF-12195:
-------------------------------
Summary: Improve cdk:object scope
Key: RF-12195
URL: https://issues.jboss.org/browse/RF-12195
Project: RichFaces
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: cdk
Affects Versions: 4.2.1.Final
Environment: All
Reporter: Paul Dijou
When using "cdk:object" tag, the cast will only occur for a part of the generated Java code, not for all of it. Here is an example :
{code:xml}
<cc:implementation>
<cdk:object type="..." name="objectName" />
// HTML code using "objectName"
<cdk:body />
// HTML code using "objectName"
</cc:implementation>
{code}
This will *not* work because the first part of the HTML code will be in "encodeBegin" method and the second part will be in "encodeEnd" method. But the cast will only happens in the "encodeBegin" method. And so there will be an error in "encodeEnd". The workaround is to copy/paste {{<cdk:object/>}} after the {{<cdk:body />}}. Ugly!
One solution would be that {{<cdk:object/>}} would generate Java code in every method that could use the variable even if they don't (methods like "encodeBegin", "encodeEnd", ...).
Another one would be that {{<cdk:object/>}} generates the following method :
{code:xml}
<cdk:object type="org.richfaces.bootstrap.component.AbstractBlockquote" name="blockquote" value="#{castComponent(component)}"/>
{code}
{code:java}
public AbstractBlockquote getCdkObjectBlockquote(FacesContext facesContext, UIComponent component) {
// From "value" attribute :
AbstractBlockquote blockquote = this.castComponent(component);
return blockquote;
}
{code}
And then replace all "blockquote" calls in HTML code with {{getCdkObjectBlockquote(facesContext, component);}}. Not sure if this last part is possible if the generation is only a copy/paste from the EL.
An alternative would be to use it like a singleton.
{code:java}
public class BlockquoteRenderer extends BlockquoteRendererBase {
private AbstractBlockquote blockquote;
private AbstractBlockquote getBlockquote(FacesContext facesContext, UIComponent component) {
if(blockquote == null) {
blockquote = getCdkObjectBlockquote(facesContext, component);
}
return blockquote;
}
}
{code}
Or any other idea that allow to call {{<cdk:object/>}} only once in the template.
--
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
12 years, 7 months