TurboManage

David Chandler's Journal of Java Web and Mobile Development

  • David M. Chandler


    Web app developer since 1994 and Google Cloud Platform Instructor now residing in Colorado. Besides tech, I enjoy landscape photography and share my work at ColoradoPhoto.gallery.

  • Subscribe

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 225 other followers

  • Sleepless Nights…

    March 2006
    S M T W T F S
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • Blog Stats

    • 1,018,386 hits

Archive for March, 2006

Eclipse Tip of the Day: Rename

Posted by David Chandler on March 30, 2006

Ever change your mind about a field name or type name? Just move the cursor over the name and hit Ctrl+2, R to rename it. Eclipse highlights all occurrences of the variable or type name and updates them all as you type. Very cool.

/dmc

Posted in Eclipse | Leave a Comment »

JSF Tip of the Day: Immediate outcomes

Posted by David Chandler on March 30, 2006

Do you ever want to use a button to transition to another view, but don’t need to execute an event handler method? Common examples of this are Cancel and Finished buttons. Rather than writing a dummy method just to return an outcome string that matches a navigation rule, you can simply do this:

<h:commandButton value=”Finish” immediate=”true” action=”return_to_start”/>

When immediate=true, JSF skips the validation, update model, and invoke application phases, so no event handler methods are executed and you specify the outcome string in the action attribute where you would normally put a method binding. To select the next view, JSF will process navigation rules using the outcome as usual.

/dmc

Posted in JavaServer Faces | Leave a Comment »

 
%d bloggers like this: