forcedotcom / aura Goto Github PK
View Code? Open in Web Editor NEWThis project is archived, please see the readme for additional resources.
License: Apache License 2.0
This project is archived, please see the readme for additional resources.
License: Apache License 2.0
I have the following input in my component:
<ui:inputNumber class="slds-input" aura:id="thisInput" value="{!v.thisVal}" change="{!c.inputChange}"/>
which calls the following controller:
inputChange: function(c, e, h){
var localId = event.getSource().getLocalId();
var field=component.find(localId);
...
}
Everything was fine for months. Today I started getting the following error:
Something has gone wrong. Action failed: c$MyComponentl$controller$inputChange[TypeError: Cannot read property 'get' of undefined]
Failing descriptor: {c$MyComponent$controller$inputChange}.
Please try again.
Looking at localId, it is returning undefined.
If I switch from an inputNumber to an inputText, there is no issue:
<ui:inputNumber class="slds-input" aura:id="thisInput" value="{!v.thisVal}" change="{!c.inputChange}"/>
Error
<ui:inputText class="slds-input" aura:id="thisInput" value="{!v.thisVal}" change="{!c.inputChange}"/>
Good
Any thoughts as to why this is happening?
This is my first trial. The only modfication I did was changing the order of ulr-pattern and filter-name inside the filter-mapping since my eclipse complained the xml was not well-formatted.
I got this error
Problem accessing /aurodoc/docs.app. Reason:
Server Error
Caused by:
org.auraframework.throwable.AuraRuntimeException: Namespace/Prefix combination markup://auratest claimed by 2 SourceLoaders : org.auraframework.impl.source.resource.ResourceSourceLoader and org.auraframework.impl.source.file.FileSourceLoader
at org.auraframework.impl.source.SourceFactory.<init>(SourceFactory.java:76)
at org.auraframework.impl.context.AuraRegistryProviderImpl.getRegistries(AuraRegistryProviderImpl.java:295)
at org.auraframework.impl.context.AuraContextServiceImpl.getRegistries(AuraContextServiceImpl.java:149)
at org.auraframework.impl.context.AuraContextServiceImpl.getDefRegistry(AuraContextServiceImpl.java:142)
at org.auraframework.impl.context.AuraContextServiceImpl.startContext(AuraContextServiceImpl.java:111)
at org.auraframework.impl.context.AuraContextServiceImpl.startContext(AuraContextServiceImpl.java:97)
at org.auraframework.http.AuraContextFilter.startContext(AuraContextFilter.java:161)
at org.auraframework.http.AuraContextFilter.doFilter(AuraContextFilter.java:105)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
at org.auraframework.http.AuraRewriteFilter.doFilter(AuraRewriteFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
Hello Everyone,
Good Morning,
In previous version of aura (i.e. 0.723) some methods does not support . those are setValid,set etc..
This version only support setValue (i am speaking about only set methods).
For example. component.find("inputCmp").setValid("v.value",true); ----doesn't support (0.723 version)
component.find("inputCmp").setValue("v.value","some text"); ------supports (0.723 version)
But In latest version it will support these methods. While I am configuring latest Aura version (as 0.1352,0.1344) in pom.xml I am getting the error as below.
I am using
Maven 3.2.1,
JDK 1.7,
Windows8-OS
I have also tried with Maven 3.2.2 ,3.0.5 also but I am getting same error.How can I resolve this?
I'm attempting to create a helper function where I want to supply some default values (it is to wrap the e.force:showToast
event, but could be for any reason, really).
ES6's default parameter value spec is so nice and syntax sugarlicious, I though I would give that a try.
No luck.
Here is the function definition:
fireToast : function(msg = 'No Message Specified',
title = 'Wobble Message' ,
duration = 5000, key, mode, type = 'info'){...}
When I attempt to save this, I get the following error:
ERROR: 0Ad240000008RPA: org.auraframework.util.json.JsonStreamReader$JsonStreamParseException: Expected ',' or ')' [64, 30]: '='
Not the end of the world, but would be really nice to have. Thanks!
Hi!
I'm posting after this question:
http://salesforce.stackexchange.com/questions/73733/how-retrive-the-value-from-uiinputselect/
if I write
component.find('o').get('v.value');
before selecting an option I get undefined
while in the rendered element I see the first option.
please add a default value to be consistent with the rendered element.
the archetype allows a hyphen in the name of the project, which leads to a namespace being generated that allows a hyphen in it. Loading the default app leads to the error below because hyphen's aren't recognized as a legal character by defdescriptors.
Invalid Descriptor Format: foo-bar:foo-bar
at org.auraframework.impl.system.DefDescriptorImpl.(DefDescriptorImpl.java:209)
Please make these 2 add-on repos public.
Currently the following code is possible:
in my_componentController.js:
//example 1
var another_component = cmp.find("my_other_component");
another_component.helper.private_method(my_variable);
//example 2
var another_func = another.get("c.action");
another_func();
Which makes component encapsulation difficult. I would like 1) to always fail, and 2) to succeed only if the action is marked as exportable in the .cmp file.
There is a known issue here - https://success.salesforce.com/issues_view?id=a1p3A000000IYE6QAO
Based on this, I'm ins a need to get/set local storage either localStorage or document cookie storage. But, document cookie is implemented as a Read-Only option and localStorage is not available at all.
I was wondering if this is going to happen or not in LockerService when it's rolled out to all?
Is there any workaround available other than disabling LockerService for Lightning Component to work and be able to store local values?
using the following component HTML:
<fieldset>
<select onchange="{!c.selectChanged}">
<option>a</option>
<option>b</option>
</select>
</fieldset>
and controller:
({
selectChanged:function(component, event, helper){
var foo = event.srcElement.selectedIndex;
if (foo === undefined){
alert("fail");
}
}
})
Selecting a new value returns a DOM event from the <select>
element
Selecting a new value returns a DOM event incompatible with the expected event
unable to access reference.app --> http://documentation.auraframework.org/auradocs#reference
When using $A.createComponents
to dynamically create aura:html
components, attributes are passed via the HTMLAttributes
parameter. When creating elements such as <path>
, many of the important attributes do not get correctly placed on the resulting DOM element. For example, the following attribute map:
['aura:html',
{
tag: 'path',
HTMLAttributes: {
d: 'M20,100a80,80 0 1,0 160,0a80,80 0 1,0 -160,0',
id: 'circle-path-bg',
fill: 'none',
stroke: '#8E9A9E',
'stroke-width': 20,
transform: 'scale(-1,1),translate(-200,0),rotate(90 100 100)',
class: 'animate-svg'
}
}]
results in the following path being rendered:
<path id="circle-path-bg" class="animate-svg" data-aura-rendered-by="66:2;a"></path>
Note that only the id
and class
attributes were placed on the DOM element. I would expect all attributes from the map to be present.
On Debian wheezy/sid with OpenJDK 6 and Maven 3.0.4:
Am I missing something outside of "mvn clean install" or the is pom busted?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project aura-util: Compilation failure: Compila
tion failure:
[ERROR] /vagrant/aura-util/src/main/java/org/auraframework/util/ServiceLoaderImp
l.java:[64,77] invalid inferred types for T; actual arguments do not conforms to
inferred formal arguments
[ERROR] required: com.google.common.base.Predicate<? super java.lang.Object>[]
[ERROR] found: com.google.common.base.Predicate<java.lang.reflect.Member>,com.go
ogle.common.base.Predicate<java.lang.reflect.AnnotatedElement>,com.google.common
.base.Predicate<java.lang.reflect.Member>,com.google.common.base.Predicate<java.
lang.reflect.Method>
[ERROR] /vagrant/aura-util/src/main/java/org/auraframework/util/ServiceLoaderImp
l.java:[185,64] invalid inferred types for T; actual arguments do not conforms t
o inferred formal arguments
[ERROR] required: com.google.common.base.Predicate<? super java.lang.Object>,com
.google.common.base.Predicate<? super java.lang.Object>
[ERROR] found: com.google.common.base.Predicate<capture#735 of ? super java.lang
.reflect.Method>,<anonymous com.google.common.base.Predicate<java.lang.reflect.M
There are a few locations (3 to be exact) in the Aura archetype web.xml where url-pattern comes before filter-name. This causes Eclipse to throw an error (could be others as well).
Example:
<filter-mapping>
<url-pattern>/l/*</url-pattern>
<filter-name>AuraResourceRewriteFilter</filter-name>
</filter-mapping>
Small issue but could be fixed as easily as well...
Hi all,
I am trying to build and run the helloworld project but it seems to be failing for me. Not sure what is wrong with the build though. Any pointers will be greatly appreciated.
I have added 'libs-external' to the pom.xml file as instructed.
<repositories>
<repository>
<id>libs-internal</id>
<url>http://maven.auraframework.org/libs-release</url>
</repository>
<repository>
<id>libs</id>
<url>http://repo.auraframework.org/libs-release</url>
</repository>
<repository>
<id>phloc.com</id>
<url>http://repo.phloc.com/maven2</url>
</repository>
<repository>
<id>libs-external</id>
<url>http://repo.auraframework.org/libs-release</url>
</repository>
I have posted the error message here: http://pastebin.com/j721CY6u
The documentation so far on Aura talks about how to build a web application that runs on desktop. I searched for a while and could not find any guidelines about how to build applications like Salesforce1 using Aura.
One of the problems with web based mobile application frameworks (like Ionic, Famous etc) is the performance; specifically for animations and touch tracking. If you have a slide navigation menu (like on SF1) and view transitions, they feel quite choppy. Salesforce1 feels like it was built not just by Aura but a mix of native and embedded webviews to show Aura components. I am not looking for details which are proprietary. However, it would be nice to set some expectations:
I followed the steps given below:
1.Clone the repo:
git clone https://github.com/forcedotcom/aura-note.git
2.Change to the newly created aura-note folder:
cd aura-note
3.To start jetty on port 8080 run this:
mvn jetty:run -Pdev
However, I got the following error while apply step-3.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Aura Framework 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:8.0.4.v20111024:run (default-cli) > test-compile @ aura-note >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ aura-note ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Ranjeet\Source Code\Aura-Note\aura-note\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ aura-note ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-external-dependency-plugin:0.4:resolve-external (get-external-dependencies) @ aura-note ---
[INFO] starting to resolve external dependencies
[INFO] attempting to resolve external artifact: com.google.code:chrome-driver:win:2.9:zip
[INFO] Downloading: http://maven.auraframework.org/libs-release/com/google/code/chrome-driver/2.9/chrome-driver-2.9-win.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.112 s
[INFO] Finished at: 2014-10-22T17:23:58+05:30
[INFO] Final Memory: 16M/177M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.savage7.maven.plugins:maven-external-dependency-plugin:0.4:resolve-external (get-external-dependencies) on project aura-note: ArtifactResolutionException encountered while attempting to resolve artifact:
[ERROR] groupId : com.google.code
[ERROR] artifactId : chrome-driver
[ERROR] version : 2.9
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I couldn't find where I did any mistake.
Given that typescript reduces bugs, has really nice tooling, and produces code that browsers internal JITs can run faster. It would be worthwhile to consider looking at transitioning to typescript.
Not sure whether there is a better place to report this or not. It looks like ui elements have their own style supplied by aura. Should these elements have a default style? If yes, then why are they not Lightning Design System styles?
I'm assuming this repo flows down to Salesforce Production of course. If this is not the case, please let me know where I can raise this as an issue/defect.
Hi all,
I followed steps given in home page. Jetty started on 8080 port but when i access /helloWorld/helloWorld.app url in page, it is thowing below exception.
Looks like aura metadata is not loaded and compiled thats why it is throwing error for even for quickFix also. even existing aura components path also not working and it is through same error. can you please help me out.
I am running it on Windows7.
HTTP ERROR 500
Problem accessing /helloWorld/helloWorld.app. Reason:
Server Error
Caused by:
java.lang.NullPointerException
at java.util.Collections$UnmodifiableCollection.(Collections.java:1086)
at java.util.Collections$UnmodifiableSet.(Collections.java:1188)
at java.util.Collections.unmodifiableSet(Collections.java:1178)
at org.auraframework.impl.context.AuraContextImpl.setPreloadedDefinitions(AuraContextImpl.java:429)
at org.auraframework.http.AuraBaseServlet.setupQuickFix(AuraBaseServlet.java:464)
at org.auraframework.http.AuraServlet.doGet(AuraServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448)
at org.auraframework.http.AuraContextFilter.doFilter(AuraContextFilter.java:110)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
at org.auraframework.http.AuraRewriteFilter.doFilter(AuraRewriteFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
Powered by Jetty://
Hi
In Aura document,(https://github.com/forcedotcom/aura -----Aura_oss.pdf),I am trying to do client side validations.Default Error Handling(page no:101).I am trying execute that example ,When I am entering Alphabets
Error message is not displayed.why?
code:
inputCmp.addErrors([{message:"Input not a number: " + value}]);
.How can i display these error message..
On line 146 we have:
if (this.minDigits === this.minFractionDigits === 0) {
This check will never succeed, since it compares a Boolean (the result of this.minDigits === this.minFractionDigits
) to a number (0
) using strict equality.
Perhaps this was meant to be a conjunction of two equalities like this?
if (this.minDigits === 0 && this.minFractionDigits === 0) {
This is to better support mobile, right now their is no way to override the input type to load the proper keyboard for mobile. This leads to a text keyboard loading in all cases which is not desired.
The Aura Reference Docs is a great start, but it's missing lots of stuff.
For example:
aura:layouts
, aura:layout
, and aura:layoutItem
.uiExamples:libraryExternal
ui:actionButton
Is there an IRC channel or somewhere Aura devs/users hang out? Would be great to have someone to help answer questions which aren't answered by the docs, such as how to fix certain errors.
Following steps detailed in
https://github.com/forcedotcom/aura#step-1-generate-a-template-from-the-aura-archetype
Running
mvn archetype:generate -DarchetypeCatalog=http://repo.auraframework.org/libs-release-local/archetype-catalog.xml
I choose 1 when prompt appears but it ends in error with message
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:generate (default-cli) on project standalone-pom: The desired archetype does
not exist (org.auraframework:simple-aura-archetype:RELEASE) -> [Help 1]
Here is a session I am trying to start an aura project
mvn archetype:generate -DarchetypeCatalog=http://repo.auraframework.org/libs-release-local/archetype-catalog.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://repo.auraframework.org/libs-release-local/archetype-catalog.xml -> org.auraframework:simple-aura-archetype (A "hello, world" app using Aura)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Downloading: http://repo.auraframework.org/libs-release-local/org/auraframework/simple-aura-archetype/maven-metadata.xml
Downloaded: http://repo.auraframework.org/libs-release-local/org/auraframework/simple-aura-archetype/maven-metadata.xml (48 KB at 969.2 KB/sec)
Downloading: http://repo.auraframework.org/libs-release-local/org/auraframework/simple-aura-archetype/0.1830/simple-aura-archetype-0.1830.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.772s
[INFO] Finished at: Fri Feb 06 11:06:00 PST 2015
[INFO] Final Memory: 13M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.auraframework:simple-aura-archetype:LATEST) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
There is a autocomplete component aura:autocomplete but it is not available to be used in lighting component.
Any idea when this will be available?
add the following line to a helper or controller function:
var foo = new Map(),
bar = new Set();
foo
and bar
are defined as the native ECMAScript 6 Map
and Set
objects
an error is thrown saying that Map is not a constructor
In file: /aura-impl/src/main/resources/aura/component/ComponentDefRegistry.js
line 78 is this: ret = new $A.$ns$.$ComponentDef$(config);
This needs to pass a config of this format:
{ descriptor: markup://namespace:componentName }
... but sometimes just passes a simple string like this: "markup://namespace:componentName"
To fix, add the following:
if (!config.descriptor) { config = { 'descriptor' : descriptor } } ret = new $A.$ns$.$ComponentDef$(config);
Hi,
I'd like to connect aura components to a non java server side. Which aura files should I be looking at? It seems like I just need to be able to tell aura what endpoint to call and then handle whatever the post parameters are that aura components send to the server? Am i wrong in thinking it's that simple. It would be nice to have examples of this in the docs :)
Thanks!
Scott
Hi Everyone
component.setCallback(this,function(a)){
}
My doubt is According to Javascript api (http://documentation.auraframework.org/auradocs#reference?topic=api:Component) I didn't find the setcallBack method..
Thanks
The ui:button
adds unspecified CSS classes. How can I remove them?
My app's source:
<ui:button buttonTitle="Login" label="Login" class="btn btn-link" press="{!c.loginToSf}"/>
Generated HTML source;
<button class="btn btn-link default uiBlock uiButton" title="Login" accesskey="" type="button" data-aura-rendered-by="25:2.a"><span class=" label bBody truncate" dir="ltr" data-aura-rendered-by="28:2.a">Login</span></button>
I don't want the default uiBlock uiButton
classes on that button. How can get rid of them?
It looks like this is directly added in the button's source. Can we add an attribute to ui:button
which disables the appending these extra classes? Perhaps call that attribute "addThemeClasses" which defaults to "true"?
ui:button
source:
<button type="{!v.buttonType}" aura:id="button" class="{!v.class +' '+v.theme+' uiBlock'}" o
We've got the helloWorld app working now (thanks for the quick fix!), but the auradocs URL referenced in the readme (http://localhost:9090/auradocs) still seems to be unavailable.
I would like to restrict A component to have only B as children and no other component. Is there anyway to do it? If not is there any plan to add such a feature?
I cannot use SVGs in my application. The following should be updated:
aura/src/main/java/org/auraframework/def/HtmlTag.java
Add svg
and use
to allowed tags.
Hi good evening Everyone,
As I am a beginner Please help me to understand the flow.I am following the https://github.com/forcedotcom/aura/blob/master/aura_oss.pdf (Aura document).I have cloned aura-note and aura-todo-mvc and imported the projects in eclipse.I am successful in creating my new components but I am facing problems communicate with controller .
Can anyone explain/tell me in brief/suggest me links for better understanding(flow)..
I see tags in the public github repo for versions up to 0.499, but not after. Would it be possible to push those tags so that it's possible to find the source for a particular released jar in git?
Works:
{!v.foo}
Doesn't work (changes to bar
are ignored)
{!v.foo.bar}
component.set('v.foo.bar', "foobar");
component.get("v.foo")
will have a value bar
on it
component.get("v.foo")
does not have a value bar
on it
Hi,
How can I get access to forcedotcom github?
Thanks,
Colleen Smith
Desk - dev manager
[email protected]
Our integration tests work on Linux and MacOS both. However, on Windows:
After cloning from source. Local compilation from source fails with the error
Executed the following command where aura was cloned
$ mvn install
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (xunit.js) on project aura-impl
Detailed output
[INFO] --- maven-antrun-plugin:1.6:run (xunit.js) @ aura-impl ---
[INFO] Executing tasks
main:
[echo] Executing tests
[java] Java Result: 225
[echo] Generating test report in junit format
[copy] Copying 1 file to /home/ubuntu/work/aura/aura-impl/target/surefire-reports
[echo] Test report completed: /home/ubuntu/work/aura/aura-impl/target/surefire-reports/TEST-xunit.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Aura Framework ..................................... SUCCESS [ 2.086 s]
[INFO] aura-interfaces .................................... SUCCESS [ 0.673 s]
[INFO] aura-spring ........................................ SUCCESS [ 0.186 s]
[INFO] aura-util .......................................... SUCCESS [ 8.153 s]
[INFO] aura ............................................... SUCCESS [ 3.192 s]
[INFO] aura-impl-expression ............................... SUCCESS [ 1.431 s]
[INFO] aura-impl .......................................... FAILURE [ 32.775 s]
[INFO] aura-tools ......................................... SKIPPED
[INFO] aura-components .................................... SKIPPED
[INFO] aura-resources ..................................... SKIPPED
[INFO] aura-integration-test .............................. SKIPPED
[INFO] aura-jetty ......................................... SKIPPED
[INFO] auradocs-integration-test .......................... SKIPPED
[INFO] archetype for Aura-based "hello, world" ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.832 s
[INFO] Finished at: 2015-11-04T11:23:22+05:30
[INFO] Final Memory: 38M/413M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (xunit.js) on project aura-impl: An Ant BuildException has occured: There were xUnit.js test failures. Check /home/ubuntu/work/aura/aura-impl/target/surefire-reports/TEST-xunit.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :aura-impl
Hi,
outName.set("v.value", fullName);
Here I am getting the fullName but I am facing problem while assigning value.
Whats wrong with this.
This is the example code from Aura document.I think code is correct but I don't know why I am not getting any value while getting outName.get("v.value");
View(component code):
<ui:inputText label="Name" aura:id="name" value="" placeholder="First, Last"/>
<ui:outputText aura:id="nameOutput" value=""/>
<ui:button aura:id="outputButton" label="Submit" press="{!c.getInput}"/>
Controller(Js)
({
"getInput": function(component){
var fullName = component.find("name").get("v.value");
alert('fullname:'+fullName);
var outName = component.find("nameOutput");
outName.set("v.value", fullName);
alert('cccc:'+component.find("nameOutput").get("v.value"));
}
})
I tried going through the "How do I Start" section in readme.md. However, that url doesn't seem to be active. I'm guessing I'm just jumping the gun on this, but I thought I'd submit an issue just in case.
http://epo.auraframework.org/libs-release-local/archetype-catalog.xml can not be accessed.
Can someone have a look at this?
Would it be nice if you could add all the archetype related information in github?
Thanks
On line 142 we have the following if
statement:
if (ignoreExistingAction && config && config.attributes && config.attributes.values) {
The condition will always evaluate to false
, since ignoreExistingAction
is not initialised at this point (it is declared on line 136).
Similar code elsewhere suggests that it should perhaps be initialised to cmp.get("v.ignoreExistingAction")
.
I noticed the startup project created by mvn archetype:generate -DarchetypeCatalog=http://repo.auraframework.org/libs-release-local/archetype-catalog.xml
using servlet 2.5. I need to copy aura servlet and filter into my web.xml.
It will be much easier if
If this is not practical, you could have two distrbution. One is current one. The other is like aura-servlet-3.0.jar.
If this is case, I can use aura in a regular web project by including it in my WEB-INF/lib folder.
Thanks
would like to run examples but pom.xmls are out of date
Hi,
While generating the template from Aura Archetype,helloWorld project is creating ,but class folder is not created.And When running helloworld app in browser I am getting(500) server error...Can anyone guide me.
I have fallowed the steps provided in below link
https://github.com/forcedotcom/aura
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.