I've been trying to programmatically insert composite components into an UIPanel. For this I tried to use BalusC's includeCompositeComponent method.
Only I have a NullPointerException on the first application.createComponent. It points to :
com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(FaceletViewHandlingStrategy.java:237) [jsf-impl-2.1.25.jar:2.1.25]
Apparently there's no FaceletFactory in my FacesContext. I've looked in Debug mode into facesContext.getAttributes() and seen none.
Did I miss something ?
I use :
JBoss 7.1
jsf-impl-2.1.25
RichFaces-4.3.4
My problem was the phase in which I was trying to insert my components. It was on postInvokeAction.
By doing it in postAddToView, I don't have the problem.
Related
ExtJS version 6.2
I'm not allowed to call initConfig() from my extended textfield, in a contructor. The error it thrown is that,
initConfig should not be called by subclasses, it will be called by Ext.Component(…).
For some reason I can't use callParent() there.
It was available in ExtJS 5.0. Any alternatives for this?
Use Ext.apply(this, cfg) instead of initConfig(). It will solve your issue.
Sample old code:
constructor: function(cfg){
this.initConfig(cfg);
},
Sample correct code:
constructor: function(cfg){
//this.initConfig(cfg);
Ext.apply(this, cfg);
},
I'm trying to create a Sitelet with SiteletBuilder in C#:
return WebSharper.Sitelets.Content.Page(...)
However, the class Websharper.Sitelet contains Content both as Struct and Class.
So, this does not compile.
Versions of Zafir-Libraries are
Zafir 4.0.152.29-beta5
Zafir.CSharp 4.0.152.29-beta5
Zafir.Html 4.0.56.95-beta5
Zafir.UI.Next 4.0.102.33-beta5
How to reference WebSharper.Sitelets.Content proberly?
Or is this indeed a bug?
Thanks for the report, created ticket: https://github.com/intellifactory/websharper/issues/645
I have been testing with having using WebSharper.Sitelets; and then using with shorter form Content.Page(...). C# can resolve this for some reason, although the name conflict indeed exists in WebSharper.Sitelets.dll
Currently i am working on a migration from SlimDX to SharpDX. Some things are different between them, like loading shaders etc:
I have a problem creating the PixelShader class (same applies to the VertexShader class). The problem is, every example I found on this subject will not compile.
For example:
using (var pixelShaderByteCode = ShaderBytecode.CompileFromFile(filename, "PS", "ps_5_0", shaderFlags))
shader.PixelShader = new SharpDX.Direct3D11.PixelShader(device, pixelShaderByteCode);
The problem is, SharpDX.Direct3D11.PixelShader does not take a ComplilationResult as parameter. I could use the vertexShaderByteCode.Bytecode which is a ShaderBytecode, but this is also invalid.
There is a vertexShaderByteCode.Bytecode.Data which is a DataStream. I might create the byte[] from it, but I think this could be solved easier? Did I missed something?
using: SharpDX 3.1.1
I have found the problem:
Looks like i need to reference the SharpDX.D3DCompiler also, to compile for DX11. It was using the DX9 compiler.
SharpDX.D3DCompiler.ShaderBytecode(DX11) vs SharpDX.Direct3D9.ShaderBytecode(DX9)
I'll leave this for anyone who has the same struggles.
CompilationResult is returned by the compile and you can test if the bytecode is null, if it is, you can then check the error codes (Best in debug though :)).
HasErrors : boolean
Message : string
Check these also.
I'm using TSAPFunction to connect to SAP with Delphi 2009.
Everything works fine, I can use some BAPIU like (RFC_READ_TABLE, BAPI_GOODSMVT_CREATE, etc...).
I'm trying to use HU_CREATE_GOODSMVT_RFC but it doesn't work.
If I try to add functions from OCX I got this error "Could not add functions"
When I try to add it from this code :
FormClientSAP.SAPFunctionsWork.Add('HU_CREATE_GOODSMVT_RFC');
I tried with this code too :
myIFunction:=FormClientSAP.SAPFunctionsWork.Add('HU_CREATE_GOODSMVT_RFC') AS IFunction;
But my function isn't added (FormClientSAP.SAPFunctionsWork.Count = 0).
I try with and without UNICODE components.
I've checked in SAP and this BAPI is RFC enable. And from SE37 I can use it and it works fine.
Can anyone can help me to understand what is wrong?
Thanks for your help.
Hello I'm trying to update some complex fields such as Issue Type or Status using Jira Rest Client Library for Java and I'm having some trouble. This is what I've got so far:
Issue issue = client.getIssueClient().getIssue(issueKey, null);
client.getIssueClient().update(
issue,
ImmutableList.of(new FieldInput(IssueFieldId.ISSUE_TYPE_FIELD,
issue.getIssueType())), null);
As you can see I'm only trying to update the issue type using it's own type (just to test it), however I get an Exception:
Exception in thread "main" com.atlassian.jira.rest.client.RestClientException:
org.codehaus.jettison.json.JSONException: Cannot generate value - unknown type for me:
class com.atlassian.jira.rest.client.domain.BasicIssueType
Am I missing something, is there any documentation for this library that I missed?
I managed to achieve what I was trying to do:
Issue issue = client.getIssueClient().getIssue(issueKey, null);
client.getIssueClient().update(
issue,
ImmutableList.of(new FieldInput(IssueFieldId.ISSUE_TYPE_FIELD,
ComplexIssueInputFieldValue.with("id", id))), null);
This will change the type of the issue, hope this will help anyone else who encounters this problem.