[svn] 1648: This checkin makes public our modifications to Velocity 1. 4 which make the parse tree serializable.
Revision: 1648
Author: [email protected]
Date: 2008-05-09 14:24:44 -0700 (Fri, 09 May 2008)
Log Message:
This checkin makes public our modifications to Velocity 1.4 which make the parse tree serializable.
Velocity has a slow parser and template lookup mechanism so we save 25% time in the MXML compiler by only using merge at runtime and loading a serialized form of the parse tree from the classpath.
There's a simple class flex.util.SerializedTemplateFactory that has a main method to serialize a template and a load method to load a template.
Another significant change is that macros and their arguments are not parsed at runtime; we parse them once at parse time and they are just evaluated at runtime. The original Velocity liked to concatenate tokens in its production rules and then re-parse at runtime.
It turns out that re-serializing the parse trees is still pretty expensive, so the next step would be to codegen a Java class that does all the velocity actions without any of the Velocity runtime necessary.
Bugs: -
QA: No
Doc: No
Reviewer: Jono
Modified Paths:
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/app/VelocityEngin e.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Runtime.j ava
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeCo nstants.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeIn stance.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeSe rvices.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/RuntimeSi ngleton.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Velocimac roFactory.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/Velocimac roManager.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Foreach.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Include.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /Macro.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /VMProxyArg.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/directive /VelocimacroProxy.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.jj
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/Pa rser.jjt
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/To ken.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/bu ild
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTComment.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTDirective.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTEscape.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTEscapedDirective.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTIdentifier.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTMethod.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTNumberLiteral.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTReference.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTSetDirective.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTStringLiteral.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTText.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/ASTWord.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/Node.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/runtime/parser/no de/SimpleNode.java
flex/sdk/trunk/modules/thirdparty/velocity/src/java/org/apache/velocity/util/introspectio n/Info.java
Added Paths:
flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/
flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/util/
flex/sdk/trunk/modules/thirdparty/velocity/src/java/flex/util/SerializedTemplateFactory.j ava
Dave,
First of all, THANK YOU! THis is extremely timely and helpful; exactly what I've been looking for.
I'm with you all the way until the end, right here:
wrap the elements into the required delimiters.
my $returnValue = sprintf('"%s" <%s> (%s) [%s]', $displayName, $emailAddress, $username, $userIdentifier);
return ETC, ETC
Did this part lose some formatting in the post? Where are the line breaks? Is it one unbroken string?
Dual 2GHz G5 Mac OS X (10.4.6)
Dual 2GHz G5 Mac OS X (10.4.6)
Dual 2GHz G5 Mac OS X (10.4.6)
Similar Messages
-
Revision: 1608
Author: [email protected]
Date: 2008-05-07 17:36:02 -0700 (Wed, 07 May 2008)
Log Message:
This checkin makes public our modifications to Batik, which improve how the MXML compiler reports errors in CSS syntax.
Bugs: -
QA: No
Doc: No
Reviewer: Jono
Modified Paths:
flex/sdk/trunk/modules/thirdparty/batik/resources/org/apache/batik/css/parser/resources/M essages.properties
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractDesce ndantSelector.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractEleme ntSelector.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractSibli ngSelector.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/CSSLexicalUni t.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/DefaultCondit ionalSelector.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/DefaultElemen tSelector.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/ParseExceptio n.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Parser.java
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Scanner.java
Added Paths:
flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractSelec tor.java -
When I try to use the Submit Form button on the Interactive PDF I created (In Design CS6), I get this message:
There is no value in form field "Program." Please put in it before proceeding.
How can I fix this and make the Submit Form button work?Are you running modified software on your phone? This error seems to be common if the firmware has been modified and you're trying to restore the phone again.
-
Does this upgrade make the iPhone 4S?????
Does this upgrade make the iPhone 4S?????
If you have an iPhone 4, it will always be an iPhone 4. The 4S has different hardware.
-
How to make the APEX tree in the "Expand All" shape by default?
Could anybody please enlighten me on how to make the APEX tree in the "Expand All" shape by default please? I created an APEX tree and by default it's in the "Collapse All" shape. I am using APEX 4.1.0.00.21
Hi,
you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
Thanks,
Jaydip Bosamiya
+91-76000 23053
http://jbosamiya.blogspot.com -
Revision: 2216
Author: [email protected]
Date: 2008-06-24 13:34:15 -0700 (Tue, 24 Jun 2008)
Log Message:
Changed InterfaceCompiler to public so that it can be used directly for mxml parsing by other tools. Also change parseMxml to public.
Reviewed by: Paul
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.javaBefore I read this helpful post, I changed my Google search key words from "change location Firefox profiles" to "change path Firefox Profiles" and found this link: http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Changing_Profile_Folder_Location. This brought me to the article "Moving Your Firefox Profile" which answered my question. Your suggested link would have ultimately led me to the same solution.
The problem was that I had copied my Firefox profile to the new location and then modified "profiles.ini" to point to the new location and saved it there as a replacement to the original "profiles.ini" that I had renamed "profiles.iniOld." Even though I had changed "IsRelative" from "=1" to "=0" I got error messages. I had used this procedure successfully before, but it would not work this time. When I used Profile Manager to move the Firefox Profiles everything worked fine the first time I tried it, and it took only a few minutes.
Thank you, cor-el. -
As stated I turned on my passcode lock to come on after 1 hour of operation. It doesn't work like I thought it would. My thoughts were that it would go to the lock screen and then require a code. Is my thinking not right on this? What am i doing wrong?
The passcode will be requested after the device has been in sleep mode for one hour. It does not turn off the device, nor is it a usage timer.
-
This bug makes the router unmanageable with SNMP
Hello, I'm working for Orange Business Services and filed this bug. Orange Business Services is shipping this 881 router on large scale and we are hitting this bug more and more. This is really anoying as we can no longer monitor them with SNMP
Sorry, what is the bugid?
Do you have a case open with the TAC? -
Will this PSU make the cut?
Thermaltake Silent Pure 560w
http://www.newegg.com/app/ViewProductDesc.asp?description=17-153-015&depa=1
22amps on the 12volt line...will this PSU cut it for a K8N Neo2 Platinum with 2 HDD 2optical drives, 1 floppy, and a 6800 GT
Not planning on OC'ingTagan 480w is a good choice
I guaranty that it won't disapoint you.
Here is the detailed specs
Tagan 480W
Intel Pentium4 & AMD CPU compatible
+12V/28A power source supports more peripherals
+ 5VSB delivers up to 2.5A (continuously)
Dual-fan with TSCT (Tagan Silence Control Technology) for a whispering operation 22~24 dBA at 50% load
1 x ATX 20-pin connector
1 x 12v 4-pin connector (CPU)
1 x ATX 20 pins / ATX 24 pins Adapter
1 x 12v 8-pin connector (CPU)
10 x 4-pin Molex connectors for 5"1/4 peripherals
2 x 4-pin Molex connectors for 3"1/2 peripherals
2 x SATA connectors (brings power to SATA Disk Drives)
Serial ATA HDD connectors built-in
2 Thermo Regulated Cooling Fans
TSCT Low Noise Technology
ATX12V version 1.3 and downward compatible
Universal wide-range input of 95-250 VAC
ATX 24-pin & 8-pin / 20-pin & 4-pin connectors for most MB
Intel Pentium 4 & AMD K7/K8 compatible
480 Watt Max power output
Output: +3.3V@28A,+5V@48A,+12V@28A,[email protected],[email protected],[email protected]
http://www.tagan.de -
The Keyboard Clicks worked fine for six days. Now I cannot get the sound to be "on".
Any ideas?Reset your phone:
Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.
iPhone Reset
http://support.apple.com/kb/ht1430 -
How to make the default tree row selection programatically
I have one use case where I am displaying the tree table based on some parameter which is just for filtering the table and display the part of hierarchy.
The problem here is I want to make a default selected row when the tree will be rendered to UI based on the primary key(that is the input parameter).
can you please tell me how to do this.I am using jdev 11g.
thanks,
HarshHi,
for this you need to know where in the path the PK is. If e.g. the PK is for a second level node then you need to pass the first level node PK as well. Nodes in a tree are defined as ArrayLists. So unfortunately your question doesn't provide enough information
Frank -
How to make the navigation tree icon in an advanced datagrid to expand in different columns
Hi All ,
I am using an application built using Flex 3 .
In my application I am using an AdvancedDataGrid for datadisplay.
And the hierachy is like this
Tree structure in advanced datagrid at present :
Header 1
Header 2
Header 3
Header 4
Header 5
Parent Tree
Expanded1
Expanded2
Expanded3
ParentTree
Expanded1
Expanded2
Expanded3
value
Expected tree structure in advanced datagrid :
Header 1
Header 2
Header 3
Header 4
Header 5
ParentTree
Expanded1
Expanded2
Expanded3
value
can someone tell me if this is possible in advanced data grid and if possible please let me know how do i expand the tree icons in seperate columns ...
Thanks ,
AjanthaHi,
you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
Thanks,
Jaydip Bosamiya
+91-76000 23053
http://jbosamiya.blogspot.com -
Email photographs not seen, photograph are replaced with a small blue question mark.....what do I need to do to see the pictures ?
Hello tomfromridgetown,
Welcome to the Apple Support Communities!
I understand that sometimes when you receive an email it contains a small box with a question mark for the attachment. It sounds like what you may be seeing is a windmill.dat attachment. Please review the attached article for information on what these attachments are and how to avoid them in the future.
Mac OS X Mail: What is a winmail.dat attachment? - Apple Support
Have a great day,
Joe -
now that I have the status bar back, why won't it show the status messages IN the status bar?
The Status-4-Evar add-on can do this, it makes the add-ons bar behave in a similar way to the status bar in Firefox 3.6 and earlier.
https://addons.mozilla.org/firefox/addon/status-4-evar/ -
To make the User group Filed mandatory for the Tcode SU01
Hi Gurus,
I need to make the 'User Group' Filed mandatory for the Tcode 'SU01'.
I know we can do it using Transaction variant.
But i do not want to create a new custom Tcode (e.g ZSU01) for the same.
I understand we have a User Exit 'SUSR0001' for the Tcode SU01.
Can we use this to make the User Group field mandatory.
Or is there is some alternative way to do this ?
Please advice.
Thanks in Advance.
Regards,
Anubhav MishraHi Anubhav Mishra,
> I know we can do it using Transaction variant.
> But i do not want to create a new custom Tcode (e.g ZSU01) for the same.
You don't need to create a custom Tcode to assign a transaction variant, just declare it as being a "standard variant" (in the SHD0 transaction too), and you'll make it assigned automatically to SU01 when this last is started.
BR
Sandra
Maybe you are looking for
-
How to highlight specific words in the Reader
Hi! I am new to the Acrobat SDK and could need some guidance on how to solve the following problem: I need a plug-in that is able to highlight specific words in a pdf file (e.g. by underlining it or changing the background color) and offers a context
-
How to synch ipod with windows media player
Trying to load songs i have on my Windows media player to my ipod, computer won't regonise ipod and let me synch.
-
Reference of 103 mat.doc. in 105 doc. , when GR based IV is not selected
Hi, I required logic, to list out 103 material documents for which movt. 105 is not made , If GR based IV is not selected in PO. We know, each MIGO document has a reference document number. In case of 103 document, the reference document number is th
-
Hi Friends, I am using VA88 for the first time. When I am running VA88 for a particuar sales order, it is giving me a message " No settlement for this sender ". What all config settings I have to check in this. Kindly explain me with path or TCodes.
-
Calculation Based on Previous Day's Figure
Hi all, This is a solution I implemented several years ago, which is now causing problems and must be rectified. The intention was to compare a single field across two days and calculate the difference. The only way I could figure out how to do tha