• SkyBlue2007
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 20
    Replies

Hi all,

 

I tried to create a new custom field linked to Lead Email with formula type, but I couldn't.

Because I couldn't get an E-mail Type as formula retrun type.

 

Please let me know how to solve this problem.

 

Thanks,

 

SkyBlue2007

Hi all,

 

I have a question about License Management App.

I'm reading License Management App 2.1 Administration and User Guide, 

it says, "create a workflow rule with a filter that specifies that the License Status equals Uninstalled".

On the other hand, it also says, "Do not impose any conditions on updating or creating license or lead records.".

I should create workflow rule on lead or licenses, or not? 

 

Thanks,

SkyBlue2007

Hi all,

 

I'm trying to create a Validation Rule.

It's inputfield data which includes some control characters can't be registered in the database.

Also, we can enter up to 240 one-byte characters in the inputfiled.

 

Could you ask me to know Validation Rule sample?

 

Thanks,

 

SkyBlue2007

Hi all,

 

I have a problem with a third-party Cookie via iframe.

It probably is associated with web browzer, for example ie8.

I don't know how to solve it without changing my browser settings.

 

Thanks,

SkyBlue2007

Hi all,

 

I tried to test my custome controller, but I don' t know How to test some Exceptions in a class.

 

Here's a controller.

public class SampleController {
   private User user {get; set;}
    
   public SampleController () {
      String userid = UserInfo.getUserId();
      user = [select testfield__c from User where id = :userid];
   }    
   
   public PageReference login() {
      try {
         String testfield = user.testfield__c;
         if(testfield != null && testfield.length() > 0) {
            ・・・・・
         }
         else {
            SampleException e;
            throw new GsException('SampleException threw', e);
         }
      }
      catch (SampleException e) {
         String summary = e.getMessage();
         ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.ERROR, summary)); 
      }
      return null;
   }
}

Here's a Exception Class.

public class SampleException extends Exception {
}

 

Here's a test class.

@isTest
private class SampleControllerTests {
   public static testMethod void testMyController() {
      Profile p = [select id from profile where name='Standard User'];
      User u = new User(alias = 'standt', email='standarduser@testorg.com', emailencodingkey='UTF-8',lastname='Testing',langua​gelocalekey='en_US', localesidkey='en_US', profileid = p.Id,timezonesidkey='America/Los_Angeles', username='standarduser@testorg.com');   
      
      System.runAs(u) {
         PageReference pageRef = Page.SamplePage;
         Test.setCurrentPage(pageRef);

         SampleController controller = new SampleController();

         try {
            PageReference nextPagePR = controller.login();
         }
         catch (Exception e) {
            String TypeName = e.getTypeName();
            System.assertEquals('SampleException', TypeName);
         }
      }    
   }
}

 

I have two questions.

One is how I confirm if Exception TypeName is "SampleException".

The other is how I confirm if  Message is "SampleException".

 

Thanks,

SkyBlue2007

Hi all,

 

I tried to test my custom controller, and I got a error message "Variable is not visible" when I saved my test class.

 

Here's a controller.

public class SampleController {
   private User user {get; set;}
   private String pritest {get; set;}
   public String pubtest {get; set;} 
    
   public LoginController () {
      String userid = UserInfo.getUserId();
      user = [select testfield__c from User where id = :userid];
      pritest = 'abc';     

  pubtest = 'xyz'; } public PageReference login() { ・・・・・・・ } }

 

Here's a test class.

@isTest
private class SampleControllerTests {
   public static testMethod void testMyController() {
      Profile p = [select id from profile where name='Standard User'];
      User u = new User(alias = 'standt', email='standarduser@testorg.com', emailencodingkey='UTF-8',lastname='Testing',languagelocalekey='en_US', localesidkey='en_US', profileid = p.Id,timezonesidkey='America/Los_Angeles', username='standarduser@testorg.com');   
      
      System.runAs(u) {
         PageReference pageRef = Page.SamplePage;
         Test.setCurrentPage(pageRef);

         SampleController controller = new SampleController();

         String pritest = controller.pritest;
         String pubtest = controller.pubtest;
         System.assertEquals('abc', pritest);
         System.assertEquals('xyz', pubtest);
      }
   }
}

Please let me know how to test some private member variables in a class.  

 

 Thanks,

SkyBlue2007

Hi all,

 

I tried to update User  Object, but it didn't work.

Then I got an error message which is '"Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []".

 

Here is VF.

<apex:page standardController="User" extensions="userExtension2" sidebar="false">
<apex:pageMessages showDetail="true" />
 <apex:sectionHeader title="AAA" subtitle="{!$User.LastName} {!$User.FirstName}"></apex:sectionHeader>
    <apex:form >
        <apex:pageBlock title="BBB">
            <apex:pageBlockButtons>
                <apex:commandButton action="{!save}" value="save"></apex:commandButton>
                <apex:commandButton action="{!cancel}" value="cancel"></apex:commandButton>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="CCC" collapsible="false" columns="1">
                <apex:inputField value="{!User.testField1__c}"></apex:inputField>
                <apex:inputField value="{!User.testField2__c}"></apex:inputField>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

Here is Controller Extensions.

public class userExtension2 {
   private final User u;

   public userExtension2(ApexPages.StandardController stdController) {
      this.u = (User)stdController.getRecord();
   }

   public PageReference save() {
      try {
         update u;
      }
      catch (DmlException e) {
      }
   }
   return null;
}

 

 

Hi all,

 

I'm thinking of Exception handling except for some User Validation Rules,

but Apex catches an Exception with them.

 

Here's Apex.

try {
   update user;
}
catch (Exception e) {
   String errorMessage = e.getMessage();
   ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.ERROR, errorMessage));
}

 In this case, I have two error messages.

 

Thanks,

SkyBlue2007

 

 

Hi all,

 

I'll try to use private Variables from Visualforce, but it doesn't work.

 

Here is VF.

<apex:page controller="TestController" action="{!tabTest}" sidebar="false">
<apex:iframe src="{!iframeUrl}" scrolling="true"/>
</apex:page>

 

Here is Controller.

public class TestController {
   private String iframeUrl {get; set;}

   public PageReference tabTest() {
      iframeUrl = 'http://www.test12345.com';
      return null;
   }
}

Please let me know if you have any information.

 

Thanks,

SkyBlue2007

Hi all,

 

I'm searching for Apex Http Errors.

I find out a error,  "CalloutException", for now.

 

Here is Test Class.

HttpRequest req = new HttpRequest();
   req.setTimeout(10000);
   req.setMethod('POST');
   req.setBody('&userid=testuser'+'&password=test1234');
   req.setEndpoint('http://www.sample.com');

   Http http = new Http();
   
   try {
      HTTPResponse res = http.send(req);
   }
   catch(CalloutException e) {
   }
   catch (Exception e) {
   }

 Please let me know if you have any Apex Http Errors.

And please let me know how to produce their conditions.

 

Thanks,

SkyBlue2007

Hi all,

 

I'm searching for the number of "CalloutException" messages.

I find out four messages for now, and they're  as follows.

 

- Read timed out

- no protocol

- unknown protocol

- Unauthorized endpoint

 

Please let me know if you have any "CalloutException" messages.

And please let me know how to produce their conditions.

 

Thanks,

SkyBlue2007

Hi all,

 

I tried to test my Controller Extensions, but it didn't work.

 

Here is VF page whose name is "pageName". 

<apex:page standardController="User" extensions="userExtension2" sidebar="false">
<apex:pageMessages showDetail="true" />
 <apex:sectionHeader title="AAA" subtitle="{!$User.LastName} {!$User.FirstName}"></apex:sectionHeader>
    <apex:form >
        <apex:pageBlock title="BBB">
            <apex:pageBlockButtons>
                <apex:commandButton action="{!save}" value="save"></apex:commandButton>
                <apex:commandButton action="{!cancel}" value="cancel"></apex:commandButton>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="CCC" collapsible="false" columns="1">
                <apex:inputField value="{!User.testField1__c}"></apex:inputField>
                <apex:inputField value="{!User.testField2__c}"></apex:inputField>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 Here is Controller Extensions.

public class userExtension2 {
        private final User u;
               
        public userExtension2(ApexPages.StandardController stdController) {                
           this.u = (User)stdController.getRecord();
           
        }
        
        public PageReference save() {
           if(u.testField1__c != null && u.testField1__c.length() > 0)
           {
              if(u.testField2__c != null && u.testField2__c.length() > 0)
              {
                 User us = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
                                 
                 us.testField1__c = u.testField1__c;
                 us.testField2__c = u.testField2__c;
                 
                 try {
                    //update
                    update us;
                    ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.INFO, 'COMPLETE','COMPLETE'));
                 } catch (DmlException e) {
                    ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
                 }           
              }
              else
              {
                 ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
              }
           }
           else
           {
              ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
           }
           return null;     
        }
}

 

Here is Test Class.

public class userExtension2Tests {
   
   public static testMethod void testMyController() {
   
      PageReference pageRef = Page.pageName;
      Test.setCurrentPage(pageRef);
      
      User thisUser = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
      
      ApexPages.StandardController sc = new ApexPages.StandardController(thisUser);
      userExtension2 controller = new userExtension2(sc);
      
      String nextPage = controller.save().getUrl();
      System.assertEquals('/apex/pageName', nextPage);
      
      thisUser.testField1__c ='test12345@jp.fujitsu.com';
      thisUser.testField2__c = 'sample';
      nextPage = controller.save().getUrl();
      
      System.assertEquals('/apex/pageName', nextPage);
      
      User saveUser = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
      System.assertEquals('test12345@jp.fujitsu.com', saveUser.testField1__c);
      System.assertEquals('sample', saveUser.testField2__c);
   }
}

 

Here is Test Failures:

- Message is "System.NullPointerException: Attempt to de-reference a null object".

- Stack Trace is "Class.userExtension2Tests.testMyController: line 13, column 25 External entry point".

 

 

Hi everyone,

 

I'd like to use wildcards for Remote Site settings.

For example, it's https://*.test.com.

Please let me know if you have any solutions.

 

Thanks,

Seiji

Hi everyone,

 

I'll use the HTTP Request object to POST data to an HTTPS endpoint.

Please let me know if you have some important points.

 

Thanks,

Seiji

Hi everyone,

 

I'd like to hide "Required Information" in pageBlockSection, but I cann' find

an Attribute Name. 

 

Thanks,

Seiji

Hi everyone,

 

I'd like to insert line with addMessage Method.

For example, the below code doesn't work.

 

ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR,'aaa','bbb <br/> ccc'))

Please let me know if you have best practice.

 

Thanks,

Seiji

Hi everyone,

 

I'd like to isolate CalloutException because CalloutException has some events.

For example, unknown protocol, no protocol, Unauthorized endpoint, Read timed out, and etc...

Please let me know if you have best practice.

 

Thanks,

Seiji

Hi everyone,

 

I have two visualforce pages whose name are "PageTransition" and "nextPage".

They share the same custome controllear of which is "PT".

I use setRedirect(false) because I want to share several same parameters in transition from "PageTransition" to "nextPage".  

But setRedirect(false) doesn't work !

 

Here is PageTransition.

<apex:page controller="PT" action="{!nextPage}" sidebar="false"> <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations</h1> This is your new Page: PageTransition <!-- End Default Content REMOVE THIS --> </apex:page>

 

Here is nextPage.

<apex:page controller="PT" tabStyle="PageTransition__tab" sidebar="false"> test0 is {!test0}<br/> test1 is {!test1}<br/> test2 is {!test2}<br/> </apex:page>

 

Here is the controller method.

public class PT { public String test0 { get; set; } public String test1 { get; set; } public String test2 { get; set; } public PageReference nextPage() { test0 = 'aaa'; test1 = 'bbb'; test2 = 'ccc'; PageReference np = Page.nextPage; np.setRedirect(false); return np; } }

 

 

Tab name is "PageTransition".

I have a Apex page whose getter looks like this;
 
Code;
<apex:page standardController="Blog__c" showHeader="false">

<head>

<title>{!Blog__c.Name}</title>
</head>
<body>
<div id="header">
<h1><a class="title" href="{!URLFOR($Action.Blog__c.Edit, Blog__c.Id)}">{!Blog__c.Name}</a></h1>
<h2>{!Blog__c.Description__c}</h2>
</div>
<div id="body">
<div id="main-wrap">
<div id="main" style="margin-top:5px">
<div id="m2">
<div id="m3">
<apex:repeat value="{!Blog__c.Entries__r}" var="entry">
<h2><a href="/apex/BlogEdit?id={!entry.Id}" class="title">{!entry.Name}</a></h2>
<p>{!entry.Body__c}</p>
<p class="sub">Category {!entry.Category__c} : Posted by {!entry.CreatedBy.Name} on {!entry.EntryDate__c}</p>
</apex:repeat>
</div>
</div>
</div>
</div>
</div>
</body>
</apex:page>

This code doesn't work.  Trying to save a page that references the ApexTestpage results in this error:

Error

Error: sun.io.MalformedInputException

ErrorError: common.udd.object.PreSaveValidationException

Hi all,

 

I tried to create a new custom field linked to Lead Email with formula type, but I couldn't.

Because I couldn't get an E-mail Type as formula retrun type.

 

Please let me know how to solve this problem.

 

Thanks,

 

SkyBlue2007

Hi all,

 

I have a question about License Management App.

I'm reading License Management App 2.1 Administration and User Guide, 

it says, "create a workflow rule with a filter that specifies that the License Status equals Uninstalled".

On the other hand, it also says, "Do not impose any conditions on updating or creating license or lead records.".

I should create workflow rule on lead or licenses, or not? 

 

Thanks,

SkyBlue2007

Hi all,

 

I'm trying to create a Validation Rule.

It's inputfield data which includes some control characters can't be registered in the database.

Also, we can enter up to 240 one-byte characters in the inputfiled.

 

Could you ask me to know Validation Rule sample?

 

Thanks,

 

SkyBlue2007

Hi all,

 

I tried to test my custom controller, and I got a error message "Variable is not visible" when I saved my test class.

 

Here's a controller.

public class SampleController {
   private User user {get; set;}
   private String pritest {get; set;}
   public String pubtest {get; set;} 
    
   public LoginController () {
      String userid = UserInfo.getUserId();
      user = [select testfield__c from User where id = :userid];
      pritest = 'abc';     

  pubtest = 'xyz'; } public PageReference login() { ・・・・・・・ } }

 

Here's a test class.

@isTest
private class SampleControllerTests {
   public static testMethod void testMyController() {
      Profile p = [select id from profile where name='Standard User'];
      User u = new User(alias = 'standt', email='standarduser@testorg.com', emailencodingkey='UTF-8',lastname='Testing',languagelocalekey='en_US', localesidkey='en_US', profileid = p.Id,timezonesidkey='America/Los_Angeles', username='standarduser@testorg.com');   
      
      System.runAs(u) {
         PageReference pageRef = Page.SamplePage;
         Test.setCurrentPage(pageRef);

         SampleController controller = new SampleController();

         String pritest = controller.pritest;
         String pubtest = controller.pubtest;
         System.assertEquals('abc', pritest);
         System.assertEquals('xyz', pubtest);
      }
   }
}

Please let me know how to test some private member variables in a class.  

 

 Thanks,

SkyBlue2007

Hi all,

 

I tried to update User  Object, but it didn't work.

Then I got an error message which is '"Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []".

 

Here is VF.

<apex:page standardController="User" extensions="userExtension2" sidebar="false">
<apex:pageMessages showDetail="true" />
 <apex:sectionHeader title="AAA" subtitle="{!$User.LastName} {!$User.FirstName}"></apex:sectionHeader>
    <apex:form >
        <apex:pageBlock title="BBB">
            <apex:pageBlockButtons>
                <apex:commandButton action="{!save}" value="save"></apex:commandButton>
                <apex:commandButton action="{!cancel}" value="cancel"></apex:commandButton>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="CCC" collapsible="false" columns="1">
                <apex:inputField value="{!User.testField1__c}"></apex:inputField>
                <apex:inputField value="{!User.testField2__c}"></apex:inputField>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

Here is Controller Extensions.

public class userExtension2 {
   private final User u;

   public userExtension2(ApexPages.StandardController stdController) {
      this.u = (User)stdController.getRecord();
   }

   public PageReference save() {
      try {
         update u;
      }
      catch (DmlException e) {
      }
   }
   return null;
}

 

 

Hi all,

 

I'm thinking of Exception handling except for some User Validation Rules,

but Apex catches an Exception with them.

 

Here's Apex.

try {
   update user;
}
catch (Exception e) {
   String errorMessage = e.getMessage();
   ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.ERROR, errorMessage));
}

 In this case, I have two error messages.

 

Thanks,

SkyBlue2007

 

 

Hi all,

 

I'll try to use private Variables from Visualforce, but it doesn't work.

 

Here is VF.

<apex:page controller="TestController" action="{!tabTest}" sidebar="false">
<apex:iframe src="{!iframeUrl}" scrolling="true"/>
</apex:page>

 

Here is Controller.

public class TestController {
   private String iframeUrl {get; set;}

   public PageReference tabTest() {
      iframeUrl = 'http://www.test12345.com';
      return null;
   }
}

Please let me know if you have any information.

 

Thanks,

SkyBlue2007

Hi all,

 

I'm searching for Apex Http Errors.

I find out a error,  "CalloutException", for now.

 

Here is Test Class.

HttpRequest req = new HttpRequest();
   req.setTimeout(10000);
   req.setMethod('POST');
   req.setBody('&userid=testuser'+'&password=test1234');
   req.setEndpoint('http://www.sample.com');

   Http http = new Http();
   
   try {
      HTTPResponse res = http.send(req);
   }
   catch(CalloutException e) {
   }
   catch (Exception e) {
   }

 Please let me know if you have any Apex Http Errors.

And please let me know how to produce their conditions.

 

Thanks,

SkyBlue2007

Hi all,

 

I tried to test my Controller Extensions, but it didn't work.

 

Here is VF page whose name is "pageName". 

<apex:page standardController="User" extensions="userExtension2" sidebar="false">
<apex:pageMessages showDetail="true" />
 <apex:sectionHeader title="AAA" subtitle="{!$User.LastName} {!$User.FirstName}"></apex:sectionHeader>
    <apex:form >
        <apex:pageBlock title="BBB">
            <apex:pageBlockButtons>
                <apex:commandButton action="{!save}" value="save"></apex:commandButton>
                <apex:commandButton action="{!cancel}" value="cancel"></apex:commandButton>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="CCC" collapsible="false" columns="1">
                <apex:inputField value="{!User.testField1__c}"></apex:inputField>
                <apex:inputField value="{!User.testField2__c}"></apex:inputField>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 Here is Controller Extensions.

public class userExtension2 {
        private final User u;
               
        public userExtension2(ApexPages.StandardController stdController) {                
           this.u = (User)stdController.getRecord();
           
        }
        
        public PageReference save() {
           if(u.testField1__c != null && u.testField1__c.length() > 0)
           {
              if(u.testField2__c != null && u.testField2__c.length() > 0)
              {
                 User us = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
                                 
                 us.testField1__c = u.testField1__c;
                 us.testField2__c = u.testField2__c;
                 
                 try {
                    //update
                    update us;
                    ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.INFO, 'COMPLETE','COMPLETE'));
                 } catch (DmlException e) {
                    ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
                 }           
              }
              else
              {
                 ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
              }
           }
           else
           {
              ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR, 'ERROR','ERROR'));
           }
           return null;     
        }
}

 

Here is Test Class.

public class userExtension2Tests {
   
   public static testMethod void testMyController() {
   
      PageReference pageRef = Page.pageName;
      Test.setCurrentPage(pageRef);
      
      User thisUser = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
      
      ApexPages.StandardController sc = new ApexPages.StandardController(thisUser);
      userExtension2 controller = new userExtension2(sc);
      
      String nextPage = controller.save().getUrl();
      System.assertEquals('/apex/pageName', nextPage);
      
      thisUser.testField1__c ='test12345@jp.fujitsu.com';
      thisUser.testField2__c = 'sample';
      nextPage = controller.save().getUrl();
      
      System.assertEquals('/apex/pageName', nextPage);
      
      User saveUser = [select testField1__c,testField2__c  from User where Id = :UserInfo.getUserId()];
      System.assertEquals('test12345@jp.fujitsu.com', saveUser.testField1__c);
      System.assertEquals('sample', saveUser.testField2__c);
   }
}

 

Here is Test Failures:

- Message is "System.NullPointerException: Attempt to de-reference a null object".

- Stack Trace is "Class.userExtension2Tests.testMyController: line 13, column 25 External entry point".

 

 

Hi everyone,

 

I'd like to use wildcards for Remote Site settings.

For example, it's https://*.test.com.

Please let me know if you have any solutions.

 

Thanks,

Seiji

Hi everyone,

 

I'll use the HTTP Request object to POST data to an HTTPS endpoint.

Please let me know if you have some important points.

 

Thanks,

Seiji

Hi everyone,

 

I'd like to hide "Required Information" in pageBlockSection, but I cann' find

an Attribute Name. 

 

Thanks,

Seiji

Hi everyone,

 

I'd like to insert line with addMessage Method.

For example, the below code doesn't work.

 

ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR,'aaa','bbb <br/> ccc'))

Please let me know if you have best practice.

 

Thanks,

Seiji

Hi everyone,

 

I'd like to isolate CalloutException because CalloutException has some events.

For example, unknown protocol, no protocol, Unauthorized endpoint, Read timed out, and etc...

Please let me know if you have best practice.

 

Thanks,

Seiji

Hi everyone,

 

I have two visualforce pages whose name are "PageTransition" and "nextPage".

They share the same custome controllear of which is "PT".

I use setRedirect(false) because I want to share several same parameters in transition from "PageTransition" to "nextPage".  

But setRedirect(false) doesn't work !

 

Here is PageTransition.

<apex:page controller="PT" action="{!nextPage}" sidebar="false"> <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations</h1> This is your new Page: PageTransition <!-- End Default Content REMOVE THIS --> </apex:page>

 

Here is nextPage.

<apex:page controller="PT" tabStyle="PageTransition__tab" sidebar="false"> test0 is {!test0}<br/> test1 is {!test1}<br/> test2 is {!test2}<br/> </apex:page>

 

Here is the controller method.

public class PT { public String test0 { get; set; } public String test1 { get; set; } public String test2 { get; set; } public PageReference nextPage() { test0 = 'aaa'; test1 = 'bbb'; test2 = 'ccc'; PageReference np = Page.nextPage; np.setRedirect(false); return np; } }

 

 

Tab name is "PageTransition".