NewDate always null in CalendarLayoutChangeEvent ??

I have this simple DateChooser config in flex sdk 2.0 beta 3
and the property newDate of the event CalendarLayoutChangeEvent is
always null (regardless of chosing a date) in my method
changeDate(event), see below.
I don't know, but maybe this is a bug, or do I do something
wrong, or maybe can reproduce this ?
Cheers,
Ed
<mx:DateChooser width="100%" id="DatePicker"
visible="false"
cornerRadius="2" borderColor="#c0c0c0" themeColor="#878ffc"
fillColors="[#FAFCFD, #FAFCFD]" showToday="true"
showEffect="FadeDate"
dragEnter="doDragEnter(event);" dragDrop="doDragDrop(event)"
change="this.changeDate(event)"
mouseMove="dragIt(event)" doubleClick="dblClickDate()"
doubleClickEnabled="true"
/>
The method changeDate:
private function
changeDate(event:CalendarLayoutChangeEvent): void {
trace("[change date], calendar event: " + event);
if (event.newDate != null {
..... do something

It does work
<mx:Script>
<![CDATA[
import mx.events.CalendarLayoutChangeEvent;
function runTests(event:CalendarLayoutChangeEvent) {
textResult.text= event.type + " event Triggered, ";
textResult.text+= "target newDate " + event.newDate;
]]>
</mx:Script>
<mx:DateChooser id="mydatechooser"
change="runTests(event)" />
<mx:TextInput id="textResult" />

Similar Messages

  • PS CS4 CSXSLibrary: "CSXSInterface.instance" always null

    I was referred to this sub section of the adobe forums for this question:
    I want:
    Start creating my own Photoshop CS4 SWF panel coded with the FlexSDK in FlashDevelop (pure AS3, no flex).
    I have:
    FlexSDK & FlashDevelop
    CSXSLibrary-2.0-sdk-3.4.swc
    Photoshop CS4
    issues:
    whenever I try compile or test my compiled SWF movie in Photoshop I get a null object for the CSXSInterface.instance. This object however is supposed to be the bridge between AS3 and the Photoshop JSX interaction.
    here is a simplified code that causes this error:
    package
         import com.adobe.csxs.types.*;
         import com.adobe.csxs.events.*;
         import com.adobe.csxs.core.CSXSInterface;
         import flash.display.Sprite;
         import flash.events.Event;
         public class Main extends Sprite
              public function Main():void
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void {
                   CSXSInterface.instance.addEventListener(StateChangeEvent.WINDOW_OPEN, creationComplete);
              private function creationComplete(e:Event):void {
    Once I compile the SWF and have it run in the debug Flash Player I get a error message:
    [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
    And whenever I test the SWF as a Photoshop panel (by copying the SWF file in the plugin../panel folder) I get null objects whenever I try to access it which blocks any associated actions (events, triggers,...).
    I am using CSXSLibrary-2.0-sdk-3.4.swc in combination with Photoshop CS4. Is that library perhaps not suited for CS4? Do I need a older library and if so where can I download it. Most of the libraries seem to be rather difficult to find on the internet anyway - which is a big drag for me.
    The SWC library itself however is just fine added to the library as I can even access the CSXSInterface class itself booth while coding and at runtime. Just the .instance or getInstance() singleton returns always NULL.
    Any insight or input would be greatly appriciated

    I'm having the exact same problem, attempting to make a panel in Flash CS4 to run in Photoshop CS4.
    I've tried CSXSLibrary-2.0-sdk-3.4.swc and CSXSLibrary-2.0-sdk-3.3.swc in the SDK, and the separate CSXSLibrary.swc that's been linked to. None of them work; CSXSInterface.instance is always null when my ActionScript runs in Photoshop.
    All I'm doing right now is creating a single Button component, with a script that attempts to run a test function in Photoshop.
    What's interesting is I can put the ShortcutButtons.jsx and ShortcutButtons.swf from the SDK into Plug-ins/Panels and that works just fine. My JavaScript is essentially the same:
    function TestFn()
         alert("Hello, world!");
         app.documents.add();
    And my ActionScript is as follows:
    import com.adobe.csxs.core.CSXSInterface;
    var btnTest = (root as MovieClip).btnTest;
    btnTest.addEventListener("click", testFn);
    function testFn(event:MouseEvent)
         CSXSInterface.instance.evalScript("TestFn");
    (I've put other test code in the testFn() that confirms that the click event is registered correctly.)
    I link the CSXSLibrary.swc in the "Library path" section of the ActionScript 3.0 settings, and I know it's being linked to because the size of my SWF balloons from 20 kB to anywhere from 50 to 300 kB depending on which library I'm trying.
    What am I missing here...?
    Thanks,
    Dan.

  • ADF: use of view link Accessor in Entity Object = always null?

    Hi,
    JClient 9.0.5.2, adf model.
    I would like to use the view link accessor method in the master EO to retrieve detail EO values and the view link accessor method in the detail EO to retrieve master EO values.
    Detail Rule:
    In the detail EO an attribute is derived from an attribute of the master EO: detail attribute = master attribute.
    Master Rule:
    In the master EO an attribute is derived from the detail EO: master atribute set to 0 if detail EO exist else set to 0.
    Tables:
    Table Master => MasterEO => MasterVO
    - masterPK (not updateable)
    - masterField (not updateable)
    - hasDetailsFlag
    Table Detail => DetailEO => DetailVO
    - detailPK (not updateable)
    - masterPK => foreign key (not updateable)
    - masterField (query only)
    MasterDetailLink based on foreign key.
    In link wizard I asked for the generation of following accessors in the source & destination Entity Objects:
    In DetailEO accessor name: RetrieveFromMaster
    In MasterEO accessor name: RetrieveFromDetail
    In the DetailEO, I asked for the generation of the DetailEOImpl file, accessors and create method.
    As wriiten in the file, before the create method:
    ** Add attribute defaulting logic in this method. **
    I tought this is the place to retrieve the master attribute:
    The code:
    MasterVORowImpl masterVO = getRetrieveFromMaster();
    if (masterVO == null)
    System.out.println("MasterVORowImpl masterVO create NNNNNNNNNNNUUUUUUUULLLLLLLLLL");
    The masterVO is always null?
    I suppose I didn't understand something, my guest is that ViewObjects may not be used for default logic?
    I know how to implement those rules in the database with triggers.
    I think that the data I need for implementing those rules exist somewhere at the ADF level so retrieving the data from the db is not necessary?
    Could somebody give some clues?
    I didn't find a similar example in the Business Rules in BC4J document.
    Your help will be appreciated
    Frederic

    Hi,
    Detail Rule, copy attribute value form master.
    In DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    super.create(attributeList);
    Master rule, set flag to 0 if no details else set to 1.
    In the MasterEOImpl added method to check if detail row exists based on Row Iterator => no db retrieval?
    This method also sets the flag accordingly:
    protected void checkHasOtherDetails()
    oracle.jbo.RowIterator ri = this.getRetrieveFromdetail();
    ri.last();
    // last() must be called else hasNext() returns true even on last delete ???
    Number hasDetails = Constants.NUMBER_NO; // = 1
    if (ri.hasNext() || ri.hasPrevious())
    hasDetails = Constants.NUMBER_YES; // = 0
    if (!getHasDetailsFlag().equals(hasDetails)) {
    this.setHasDetailsFlag(hasDetails);
    I call this method in the remove method of the detailEOImpl:
    public void remove()
    this.getRetrieeFromMaster().checkHasOtherDetails();
    super.remove();
    To set the flag I added follwoing code in the create method of the DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    **** ADDED ***
    Number masterHasDetailsFlag = getRetrieveFromMaster().getHasDetailsFlag();
    if (!masterHasDetailsFlag.equals(Constants.NUMBER_YES)) {
    getRetrieveFromMaster().setHasDetailsFlag(Constants.NUMBER_YES));
    super.create(attributeList);
    One more question:
    Is there a danger of calling last() on row iterators in create/update/remove methods of *Impl files?
    => current row changed => any effect on display in JPanel
    Thanks
    Frederic
    PS All variable/method/class names have been manually renamed in this code so some small syntax problems may exist.

  • Text field with autocomplete is always NULL

    Greetings,
    I am new to Apex so I am sure I am missing something obvious. I am using Apex 4.0.1 What I have done is created a form on a table page and added a new text with autocomplete page item. This new text field does not correspond to a column in the table. What I am trying to do is allow the user to use the autocomplete item to make a selection. Then when the user submits the page, I want to use the substr function on the value in the autocomplete field and populate one of the table fields. I have tried using PL/SQL functions in validations and computations but I have found that the value of the autocomplete field is always NULL. I can access the other fields that are associated with a table column fine. It must be something simple. Thanks for your help.
    Page Items
    P2_F1  - text field with auto complete. Not associated with a table column
    P2_F2 – Text field. Is associate with a table column
    This is what I want to do:
    Entered this in a validation
    begin
    if :P2_F1 is not null then
       :P2_F2 := substr(:P2_F1,1,5);
    end if;
    end;Thanks again
    Edited by: LRM on Jan 22, 2011 5:25 PM

    hi,
    The PL/SQL function can also work when you choose Computation point: After submit.
    For reading You can refer APEX documentation
    Application Builder User's Guide: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/toc.htm
    To debug application:
    While you run your application in development environment, you can view debug option on footer .
    Click on it to on debug and again click to debug off.
    To view debug result click on View Debug option.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • HostComponent always null :(

    Hey guys,
    I am declaring and adding a new Skin programmatically from actionscript like so...
    var custom:MyCustomComponent = new MyCustomComponent();
    var skin:MySkin = new Skin();
    custom.addElement(skin);
    on MySkin I have an event handler for creationComplete()
    but when creationComplete fires on the skin, the hostComponent is always null!
    If I instead set the Skin via the custom components skinClass property in mxml I dont have this problem.  Can anyone tell me what I am doing wrong, thank you!

    When you call "custom.addElement(skin);" you aren't actually setting the skin of "custom" to "skin".  You must use use the skinClass property to do this.
    What you are actually doing is just inserting that object as a child of the container.  This is not much different than doing something like "custom.addElement(new Group())"
    So hostComponent is null, because the skin isn't attached to a host component.

  • [OBIEE-11g] Error getting Nqid always null value

    Hi to all, I've a problem to load Nqid in a dashboard on 11g OBIEE.
    The javascript function return always a null value and the document.cookie instruction return an empty string ...
    somebody could help me ?!
    p.s.: in the firefox properties there is a cookie that contain the id but i can't read it
    function getNqid() {
    var nameEQ = 'nQuireID=';
    var ca = document.cookie.split(';');
    for(var i=0; i<ca.length; i++) {
    var c = ca;
    while (c.charAt(0)==' ')
    c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0)
    return c.substring(nameEQ.length,c.length);
    return null;

    Hi,
    You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
    Hope this helps.
    Thank you,
    Dhar

  • Value of a read only check box is always null

    Hi,
    I have a read-only check box in my form which fetches its values using Y or N value from table. If the value fetched from the table is 'Y' then check box is checked.
    But when I tried to assign the value of this check box to some other item it is always showing null. When I made the check box editable then it started showing the value.
    I appreciate if some one can share their thoughts if dealt with similar kind of issue.
    Thanks in advance.
    -Raj.

    Read-only items often have the "disabled" attribute which prevents them from being POSTed so you can't pass their values from the browser to the application. Since you get the value from the database, why not simply fetch that value again after the page is submitted using a computation to set the other item's value?
    Scott

  • PickResult always null

    Hello everyone.
    I am having trouble in my 3D program.Following is my code fragment:           pickCanvas.setShapeLocation(mouseevent);
    pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
         pickResult = pickCanvas.pickClosest();
    if(pickResult==null){
    System.out.println("pickResult is null");
    This pice of code is located in the mouseDragged method.When I run the program,and using mouse to drag the object,i always got "pickResult is null" message.Can anyone help me figure out what is happenning?
    Any help is appriciate.
    As reference,following is my entire program:
    import java.awt.event.*;
    import java.awt.*;
    import java.applet.*;
    import java.util.*;
    import java.awt.Frame;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.picking.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.vp.*;
    import com.sun.j3d.utils.applet.MainFrame;
    class MyCube {
         ColorCube cube;
         MyWireframe wireframe;
         Vector4f v;
         Transform3D t;
         TransformGroup tg;
         public void setV(Vector3f v){
              this.v.x=v.x;
              this.v.y=v.y;
              this.v.z=v.z;
         public void setTg(TransformGroup tg){
              this.tg=tg;
         public void getV ( float [] v ) {
              v[0] = this.v.x;
              v[1] = this.v.y;
              v[2] = this.v.z;
         public void setT( Transform3D t ) {
              this.t = t;
              if(tg != null)
                   tg.setTransform(t);
         public void setTranslation( Vector3f trans ) {
              t.setTranslation(trans);
         public Transform3D getT(){
              return t;
         public ColorCube getCube(){
              return cube;
         public MyWireframe getWireframe (){
              return      wireframe;
         public void mul(Transform3D t) {
              t.transform(v);
              this.t.mul(t,this.t);
              if (tg != null)
                   tg.setTransform(this.t);
         public MyCube(){
              cube = new ColorCube(.98);
              wireframe = new MyWireframe();
              v = new Vector4f();
              t = new Transform3D();
              tg = null;
              cube.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
              cube.setUserData(v);
              wireframe.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
              wireframe.setUserData(v);
         class MyWireframe extends Shape3D {
              public MyWireframe() {
              Point3f[] pts = new Point3f[8];
              pts[0] = new Point3f (-1.0f, -1.0f, -1.0f);
              pts[4] = new Point3f (-1.0f, 1.0f, 1.0f);
              pts[1] = new Point3f (1.0f, -1.0f, -1.0f);
              pts[5] = new Point3f (1.0f, -1.0f, 1.0f);
              pts[2] = new Point3f (-1.0f, 1.0f, -1.0f);
              pts[6] = new Point3f (1.0f, 1.0f, -1.0f);
              pts[3] = new Point3f (-1.0f, -1.0f, 1.0f);
              pts[7] = new Point3f (1.0f, 1.0f, 1.0f);
              int[] indices = {
                        0, 3, 4, 2,      /* left face x = -1     */
                        0, 1, 5, 3, /* bottom face y = -1 */
                        0, 2, 6, 1,      /* back face z = -1      */
                        7, 5, 1, 6, /* right face x = 1 */
                        7, 6, 2, 4,      /* top face y = 1      */
                        7, 4, 3, 5 /* front face z = 1 */
         GeometryInfo geometryinfo = new GeometryInfo(2);
         geometryinfo.setCoordinates(pts);
         geometryinfo.setCoordinateIndices(indices);
         Appearance appearance = new Appearance();
         PolygonAttributes polygonattributes = new PolygonAttributes();
         polygonattributes.clearCapability(2);
         polygonattributes.setCapability(1);
         polygonattributes.setPolygonMode(1);
         ColoringAttributes coloringattributes = new ColoringAttributes(new Color3f(0.2F, 0.2F, 0.2F), 2);
         LineAttributes lineattributes = new LineAttributes();
         lineattributes.setLineWidth(6F);
         lineattributes.setLineAntialiasingEnable(true);
         appearance.setLineAttributes(lineattributes);
         appearance.setColoringAttributes(coloringattributes);
         appearance.setPolygonAttributes(polygonattributes);
         setGeometry(geometryinfo.getGeometryArray());
         setAppearance(appearance);
    public class Rubik extends Applet {
         MyCube [][][] cubes;
    TransformGroup [][][] tg ;
    Vector slice = null;
    private SimpleUniverse u = null;
    private OrbitBehavior orbit;
    Point3d pressV, releaseV;
    private TransformGroup objTrans = null;
    int axisIdx = 0, sliceIdx = 0, dir = 1;
    float delta = (float) Math.PI/20, angle = 0;
    Vector4f cv = null;
    Transform3D tr;
    int prevX = 0, prevY = 0, currX = 0, currY = 0, step = 0;
    boolean drag;
    PickCanvas pickCanvas;
    PickResult pickResult;
         public Rubik() {
              init();
         void initializeCubes() {
              cubes = new MyCube[3][3][3];
              int i,j,k;
              for(i=0; i<3; i++) {
              for(j=0; j<3; j++) {
              for(k=0; k<3; k++) {
                        cubes[i][j][k] = new MyCube();
                        cubes[i][j][k].setV(new Vector3f(
                                                           (float)2*(i-1),
                                                           (float)2*(j-1),
                                                           (float)2*(k-1))
                             float [] v = new float[3];
                             cubes[i][j][k].getV(v);
                             cubes[i][j][k].setTranslation(new Vector3f(v));
         public Vector makeGroup(int n, int a) {
              // collect cubes with value a at coord n
              Vector w = new Vector();
              int i,j,k;
              for(i=0; i<3; i++) {
              for(j=0; j<3; j++) {
                   for(k=0; k<3; k++) {
                             float [] v = new float[3];
                             cubes[i][j][k].getV(v);
                             if(Math.round(v[n]) == a)
                                  w.add( cubes[i][j][k] );
              return w;
         public void applyTransform(Vector w, Transform3D t) {
              for (int i = 0; i<w.size(); i++) {
              ((MyCube)w.get(i)).mul(t);
         public BranchGroup createSceneGraph() {
              int i,j,k;
              BranchGroup objRoot = new BranchGroup();
              objTrans = new TransformGroup();
              objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
              objRoot.addChild(objTrans);
              for(i=0; i<3; i++) {
                   for(j=0; j<3; j++) {
                        for(k=0; k<3; k++) {
                             tg[i][j][k] = new TransformGroup();
                             tg[i][j][k].setTransform(cubes[i][j][k].getT());
                             tg[i][j][k].setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
                             tg[i][j][k].addChild(cubes[i][j][k].getWireframe());
                             tg[i][j][k].addChild(cubes[i][j][k].getCube());
                             cubes[i][j][k].setTg(tg[i][j][k]);
                             objTrans.addChild(tg[i][j][k]);
              return objRoot;
         public void init() {
              //initialize the objects
              initializeCubes();
              tg = new TransformGroup[3][3][3];
              pressV = new Point3d();
              releaseV = new Point3d();
              tr = new Transform3D();
              drag = false;
              setLayout(new BorderLayout());
              GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();
              Canvas3D c = new Canvas3D(config);
              add("Center", c);
              u = new SimpleUniverse(c);
              BranchGroup scene = createSceneGraph();
              pickCanvas = new PickCanvas(c, scene);
              pickCanvas.setTolerance(4.0f);
              int i,j,k;
              for(i=0; i<3; i++) {
              for(j=0; j<3; j++) {
                        for(k=0; k<3; k++) {
                             pickCanvas.setCapabilities(cubes[i][j][k].getCube(),PickTool.INTERSECT_FULL);
                             pickCanvas.setCapabilities(cubes[i][j][k].getWireframe(),PickTool.INTERSECT_FULL);
              Transform3D trans = new Transform3D();
              trans.setTranslation(new Vector3d(0,0,20));
              u.getViewingPlatform().getViewPlatformTransform().setTransform(trans);
              orbit = new OrbitBehavior(c, OrbitBehavior.REVERSE_ALL|OrbitBehavior.STOP_ZOOM);
              BoundingSphere bounds =new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
              orbit.setSchedulingBounds(bounds);
              orbit.setTranslateEnable(false);
              orbit.setZoomEnable(false);
              u.getViewingPlatform().setViewPlatformBehavior(orbit);
              scene.compile();
              u.addBranchGraph(scene);
              //mouseMoved
              c.addMouseMotionListener(new MouseMotionAdapter() {
                   public void mouseMoved(MouseEvent evt) {
    //System.out.println("mouseMoved");
                        /*********press the left mouse button***********/
                        if ((evt.getID() == MouseEvent.MOUSE_DRAGGED)&&!evt.isAltDown() && !evt.isMetaDown()){
                        return;
                   /**********press other mouse button**************/
                   pickCanvas.setShapeLocation( evt );
                        pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
                   pickResult = pickCanvas.pickClosest( );
                        if( pickResult != null && (pickResult.getObject()) != null && !drag){
                             ((Component) evt.getSource()).setCursor(
                             Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
                        }else{
                             ((Component) evt.getSource()).setCursor(
                                       Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)
              public void mouseDragged(MouseEvent mouseevent){
                        //drag=true;
    System.out.println("mouseDragged,drag="+drag);
                        /***************press mouse left button***************/
              if(mouseevent.getID() == 506 && !mouseevent.isAltDown() && !mouseevent.isMetaDown()){
              return;
                        /*****************press right mouse button****************/
              pickCanvas.setShapeLocation(mouseevent);
    System.out.println("1");
              pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
    System.out.println("2");
              //pickResult = pickCanvas.pickClosest();
    if(pickResult==null){
         System.out.println("pickResult is null");
              Node node = null;
              if(pickResult != null && (node = pickResult.getObject()) != null && drag){
    System.out.println("pickResult is not null");
    System.out.println("node.toString()="+node.toString());
              currX = mouseevent.getX();
              currY = mouseevent.getY();
    System.out.println("currX="+currX+" currY="+currY);
              if(Math.abs(currX - prevX) + Math.abs(currY - prevY) < 10)
              return;
              cv = (Vector4f)node.getUserData();
              int i = pickResult.numIntersections();
              double d = 100D;
              int j = 0;
              for(int k = 0; k < i; k++)
              if(pickResult.getIntersection(k).getDistance() < d){
              d = pickResult.getIntersection(k).getDistance();
              j = k;
              if(i > 0){
              releaseV = pickResult.getIntersection(j).getPointCoordinatesVW();
              releaseV.sub(pressV);
    System.out.println("step="+step);
              if(step == 0){
              doRotate(delta);
    System.out.println("doRotate called");
                                  }else if(step < 10){
              doRotate1(delta);
    System.out.println("doRotate1 called");
              step++;
              prevX = currX;
              prevY = currY;
              //mouseReleased
              c.addMouseListener(new MouseAdapter() {
                   public void mouseReleased(MouseEvent evt) {
    //System.out.println("mouseReleased");
              if ((evt.getID() == MouseEvent.MOUSE_RELEASED) &&
                             !evt.isAltDown() && !evt.isMetaDown())
                   return;
                   if (drag)
                        doRotate1((float) Math.PI/2 - angle);
                   step = 0;
                   angle = 0;
                   drag = false;
              public void mousePressed(MouseEvent mouseevent){
    System.out.println("mousePressed");
              if(mouseevent.getID() == 501 && !mouseevent.isAltDown() && !mouseevent.isMetaDown())
              return;
              pickCanvas.setShapeLocation(mouseevent);
              pickResult = pickCanvas.pickClosest();
              if(pickResult != null && pickResult.getObject() != null){
              int i = pickResult.numIntersections();
              double d = 100D;
              int j = 0;
              for(int k = 0; k < i; k++)
              if(pickResult.getIntersection(k).getDistance() < d){
              d = pickResult.getIntersection(k).getDistance();
              j = k;
              pressV = pickResult.getIntersection(j).getPointCoordinatesVW();
              step = 0;
              angle = 0.0F;
              prevX = mouseevent.getX();
              prevY = mouseevent.getY();
              drag = true;
    void doRotate(float f){
    byte byte0 = 0;
    boolean flag = false;
    if(Math.round(Math.abs(pressV.x)) == 3L)
    byte0 = 0;
    if(Math.round(Math.abs(pressV.y)) == 3L)
    byte0 = 1;
    if(Math.round(Math.abs(pressV.z)) == 3L)
    byte0 = 2;
    if(byte0 == 0){
    if(Math.abs(releaseV.y) < Math.abs(releaseV.z)){
    if(releaseV.z > 0.0D && cv.x > 0.0F || releaseV.z < 0.0D && cv.x < 0.0F)
    dir = -1;
    else
    dir = 1;
    axisIdx = 1;
    } else{
    if(releaseV.y > 0.0D && cv.x > 0.0F || releaseV.y < 0.0D && cv.x < 0.0F)
    dir = 1;
    else
    dir = -1;
    axisIdx = 2;
    } else
         if(byte0 == 1){
    if(Math.abs(releaseV.x) < Math.abs(releaseV.z)){
    if(releaseV.z > 0.0D && cv.y > 0.0F || releaseV.z < 0.0D && cv.y < 0.0F)
    dir = 1;
    else
    dir = -1;
    axisIdx = 0;
    } else{
    if(releaseV.x > 0.0D && cv.y > 0.0F || releaseV.x < 0.0D && cv.y < 0.0F)
    dir = -1;
    else
    dir = 1;
    axisIdx = 2;
    } else
    if(Math.abs(releaseV.x) < Math.abs(releaseV.y)){
    if(releaseV.y > 0.0D && cv.z > 0.0F || releaseV.y < 0.0D && cv.z < 0.0F)
    dir = -1;
    else
    dir = 1;
    axisIdx = 0;
    } else{
    if(releaseV.x > 0.0D && cv.z > 0.0F || releaseV.x < 0.0D && cv.z < 0.0F)
    dir = 1;
    else
    dir = -1;
    axisIdx = 1;
    if(axisIdx == 0)
    sliceIdx = Math.round(cv.x);
    else
    if(axisIdx == 1)
    sliceIdx = Math.round(cv.y);
    else
    sliceIdx = Math.round(cv.z);
    doRotate1(f);
    void doRotate1(float f){
    tr.setIdentity();
    slice = makeGroup(axisIdx, sliceIdx);
    if(axisIdx == 0)
    tr.rotX((float)dir * f);
    else
    if(axisIdx == 1)
    tr.rotY((float)dir * f);
    else
    tr.rotZ((float)dir * f);
    applyTransform(slice, tr);
    angle += f;
         public static void main(String []str){
              Frame frame = new MainFrame(new Rubik(), 256, 256);

    Hello,
    I've looked at your code and all the required elements seem to be there.
    If you find the solution to your problem please post it! If I figure it out I'll let you Know.
    I'm very interested to find out what is happening.
    Hex45
    P.S.
    It took me some time to figure out your code because you did not put it in code tags.
    All of your i variables in square brackets are not there because an i in square brackets is used as a format for italics in this forum. You can go to http://forum.java.sun.com/features.jsp#Formatting to see how to format. This will make your code more readable by including all of your indenting.
    That might explain the lack of answers. If people have a hard time reading it they just don't bother.
    cheers :)

  • RenderRequest always NULL

    Hello,
    I have added the following into the weblogic.xml
    <jsp-descriptor>
    <jsp-param>
    <param-name>superclass</param-name>
    <param-value>com.bea.portlet.jsp.PortletJspBase</param-value>
    </jsp-param>
    </jsp-descriptor>
    But when I reference the "renderRequest" in the JSP, it always be "null".

    If the JSP is included during a portlet's render/doView/doEdit/doHelp
    methods, the renderRequest and renderResponse parameters should not be
    null. Could you check if this is the case?
    Subbu
    Eric Chow wrote:
    Hello,
    I have added the following into the weblogic.xml
    <jsp-descriptor>
    <jsp-param>
    <param-name>superclass</param-name>
    <param-value>com.bea.portlet.jsp.PortletJspBase</param-value>
    </jsp-param>
    </jsp-descriptor>
    But when I reference the "renderRequest" in the JSP, it always be "null".

  • ClientInfo always Null

    Hi all,
    Could anyone help me, I am using this example
    http://help.sap.com/saphelp_nw04/helpdata/en/d4/77f23b3268f625e10000000a114084/content.htm
    And no matter what I tried to get from the ClientInfo, I always get null.
    Could anyone tell what I could be doing wrong. This is the snipped code:
    private String getBrowserCategory(IPortalComponentRequest request){     
         ClientInfoFactory factory = ClientInfoFactory.newInstance();
         ClientInfo clientInfo = factory.newClientInfo();
         clientInfo.load(request);
         String browserCategory = clientInfo.getBrowserCategory();
         return browserCategory;
    I am trying to do this in order to know which device is requesting my application and the force the URL parameter to some Web Dynpro developed to Mobile. There is another workaround to know the device that is requesting the application.
    Regards,
    Orlando Covault

    Hi All,
    Does anyone works with Web dynpro for Mobile?
    What can I do if the device specific rendering does not work and I don´t want to force the system to render the user Interface for a specific device using the sap-wd-clien parameter?
    Is there any troubleshooting for this kind of issue?
    Regards,
    Orlando Covault

  • RadioButtons value always null

    When I try to evaluate the value of a set of radiobuttons with the following code I always get a return of null;
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <H1 align=center color="#9999FF"> Test Radio Buttons</H1>
    <FORM>
    <P align=center>
    <STRONG>Select Radio Button</STRONG>
    <BR>
    <INPUT TYPE='radio' NAME='radiobutton' VALUE='yes' checked>Yes
    <BR>
    <INPUT TYPE='radio' NAME='radiobutton' VALUE='no' >No
    </P>
    </FORM>
    </BODY>
    </HTML>
    <% String buttVal = request.getParameter("radiobutton");
    out.println("Value of radiobutton = " + buttVal);
    %>
    I have found similiar threads on this issue, but none have posted why the getParameter method is not returning the value in the Value attribute, nor the code to resolve. TIA

    This is your JSP Page and JSP page executed in fellowing seq:
    First all java code compile and executed
    then your presentation layer executed
    So because you are trying to get value of radio button, Its mean that you are trying to retrive that value from previous page. and because there is nothing of this name that maybe the you r getting null
    no metter where u put jsp tag
    If you need and clearification Pl let me know
    Thanks
    Neeraj

  • DATA_TYPE is always NULL in HSP_ACCOUNT

    Hi all,
    We noticed that table HSP_ACCOUNT has columns DATA_TYPE=NULL to all accounts even if they are correctly configured. For example, if we edit account x from planning web we can see data type = Date although we don't find this information in the planning repository.
    Planning application is EPMA.
    Thanks

    We noticed datatype is stored in HSP_MEMBER instead of HSP_ACCOUNT
    Regards

  • NCo 3 RfcServer: TransactionID in called function always NULL

    Hello,
    using NCo 3 (v3.0.1, x64) I wrote a RfcServer which receives IDocs via the function "IDOC_INBOUND_ASYNCHRONOUS". When the function is called by SAP the  TransactionIDHandler seems to work fine as these functions are called together with a TransactionID (CheckTransactionID, Rollback, ConfirmTransactionID). But if my implemented function itself is called it never belongs to the Transaction (RfcServerContext.TransactionID == NULL and RfcServerContext.InTransaction == false).
    Execution sequence:
    - Check transaction (with ID)
    - IDOC_INBOUND_ASYNCHRONOUS (without TransactionID)
    - Rollback transaction (with ID)
    - Confirm transaction (with ID)
    As I'm new to the NCo I wonder if this is the correct behaviour. I expect to get the transaction ID passed into the function call. Otherwise I don't know which transaction the function call belongs to. Any help appreciated.
    Thanks,
    Mathias
        Type[] handlers = new Type[1] { typeof(RFC_Server_Handler) };
        RfcServer server = RfcServerManager.GetServer("DEV", handlers);
        server.RfcServerError += OnRfcServerError;
        server.RfcServerApplicationError += OnRfcServerError;
        server.RfcServerStateChanged += OnRfcServerStateChanged;
        server.TransactionIDHandler = new RFC_Transaction_Handler();
        server.Start();
    [RfcServerFunction(Name = "IDOC_INBOUND_ASYNCHRONOUS", Default = false)]
    public void IDOC_INBOUND_ASYNCHRONOUS(RfcServerContext context, IRfcFunction function) {
        //context.TransactionID is null
        //context.InTransaction is false

    Hello Mathias;
    I wonder how the implementation of server.TransactionIDHandler RFC_Transaction_Handler = new ();
    Thank you!

  • JSF Custom ConverterTag Error, always NULL!

    Hello all,
    The code that I am dealing with is a custom subclass that we created to add functionality to the javax.faces.webapp.ConverterTag class. The purpose is to add Regular Expression search and replace to the converter. Whenever it is run though, we get the following error:
    30 Jan 2007 10:32:48,962 ERROR org.apache.myfaces.application.ApplicationImpl - Could not instantiate converter null
    java.lang.NullPointerException
    at org.apache.myfaces.application.ApplicationImpl.createConverter(ApplicationImpl.java:476)
    at javax.faces.webapp.ConverterTag.createConverter(ConverterTag.java:94)
    at com.intecbilling.prm.common.RegexConverterTag.createConverter(RegexConverterTag.java:45)
    at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:60)
    This code used to work, but someone changed something in the environment (not in the code) and now we have no idea what happened. Any ideas would be GREATLY appreciated!

    Yes, it is defined with the following:
    <converter>
    <converter-id>RegexConverter</converter-id>
    <converter-class>com.intecbilling.prm.common.RegexConverter</converter-class>
    </converter>
    There is a custom tag library that was created also as follows:
    <tag>
    <name>RegexConverter</name>
    <tag-class>com.intecbilling.prm.common.RegexConverterTag</tag-class>
    <attribute>
    <name>pattern</name>
    <type>String</type>
    </attribute>
    </tag>
    It is being invoked as follows:
    <h:outputText value="blah blah">
    <i:RegexConverter pattern="pattern" />
    </h:outputText>
    Is the RegexConverterTag supposed to include the converter-id in the faces-config.xml file? If this is the case, I cannot understand why the code worked before the last update...
    I hope that information helps.

  • Can't get art AIUIDRef, always NULL

    using:
    AIAPI AIErr(*
    GetArtUID )(AIArtHandle art,  AIBoolean create,  AIUIDRef *uid)
    Retrieves the unique identifier for an art object.
    with create set to false, uid returned zeo.
    Does not AI automatically assigns an unique ID to an object once the object is created?
    I hope we don't create these unique ID, because it is a nightmare to manage them.
    The AIBoolean create was there suggests that you have to create it yourself?

    Generally you'd only set the create flag to false if you really, really want to make sure you don't modify the state of the document. Otherwise, you'll always want that set to true. Illustrator will create the actual ID for you; you only actually see that if you call the methods for converting an AIUIDRef into the string value of the ID. Illustrator doesn't create a unique ID until it has to, that's why the flag is there. You don't have to manage that part.

Maybe you are looking for

  • Not able to delete Personalized Items !!!

    All, I was trying to create a flex field through personalization in iProcurement 11.5.10. There was some issue and i was not able to create it properly. Now, if i go to that page, its throwing an error.I cannot got that page at all to click on "Perso

  • Lumia 620 front facing camera

    Hi, i am unable to use the front facing camera on my lumia 620. i have tried updating the software and it says there are no new updates as it is fully up to date, however i still cannot work out how to use the front facing camera. Everything else on

  • Receiver Adapter - Target URL/SOAP Action

    Hi, Can I just confirm the following 2 values required on a SOAP Receiver adapter: Target URL : Location within SOAP:Address tag of WSDL SOAP Action: SoapAction within SOAP:Operation for relevant Web Service method within WSDL Cheers, PaulC.

  • Front Row: DVD audio Controls

    Is there way to scroll through various audio channels while playing DVD's in front row? For example I want to jump from the regular audio channel to the Director's Commentary...is there a short cut to do this? jon

  • Programmed nozzle clean

    I have a new Photosmart 6520 running wireless on a Dell e510 computer WIN7 Prof 64b computer. I understand that the printer automatically exercises a print head clean and I would like to know what the period of this clean is. In order to conserve ink