azizkhani.net

I know that I know nothing

jquery easy ui right to left bug

clock December 31, 2014 20:14 by author Administrator

jquery easy ui bug in tree rtl

add this style to easyui-rtl.css‬

.tree-node{

     direction:rtl;

}

Cool

 

 

 



How does @RequestParam in Spring handle Optional?

clock December 31, 2014 20:04 by author Administrator
@RequestMapping("foo")
@ResponseBody
public String foo(@RequestParam(required =false) final Optional name){
return"name: "+(name ==null?"null": name.get());
}


Hibernate exception _$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy

clock December 23, 2014 22:18 by author Administrator

hibernate 4.3.7 using javasssist new version and oracle weblogic older than that version for solve this problem will add this configuration to weblogic.xml

<wls:container-descriptor>
        <wls:prefer-application-packages>
            <wls:package-name>javassist</wls:package-name>
        </wls:prefer-application-packages>
    </wls:container-descriptor>



@Autowired and static method

clock December 23, 2014 16:09 by author Administrator

@Component
public class Boo {

    private static Foo foo;

    @Autowired
    public Boo(Foo foo) {
        Boo.foo = foo;
    }

    public static void randomMethod() {
         foo.doStuff();
    }
}


@Component
public class Boo {

    private static Foo foo;
    @Autowired
    private Foo tFoo;

    @PostConstruct
    public void init() {
        Boo.foo = tFoo;
    }

    public static void randomMethod() {
         foo.doStuff();
    }
}



About the author

 Welcome to this web site . This page has two purposes: Sharing information about my professional life such as articles, presentations, etc.
This website is also a place where I would like to share content I enjoy with the rest of the world. Feel free to take a look around, read my blog


Java,J2EE,Spring Framework,JQuery,

Hibernate,NoSql,Cloud,SOA,Rest WebService and Web Stack tech...

RecentPosts

Month List

Sign In