Hi All,
 
This is my first query to Shale mailing list.
Very newly introduced to shale.
I was asked to prevent the double click of a form button.
There are two parts to my question.
 
A) I wanted to use <s:token>.
But my IDE and server are posing problems.
I use RAD 6.0.1 to develop Faces Portlets and server is Websphere Portal
Server 5.1.
 
a)But when i try using shale1.0.2 i get the exception:Exception during
portlet initialization.

b)But when i try using shale1.0.3 i get the exception:web application
cannot be started.

Has anybody tried using this combination.
 
B) I then tried downloading the source code for Token tag from
shale-core.jar.
    I have a simple form with a submit button and placed <s:token> as
the last token in the form.
    I wanted to reproduce the case when business logic is performed in
my page bean and i try submiting the form again.
    
<h:form id="myform" ><h:messages></h:messages>

<h:inputText id="name1" value="#{myBean.name}" />

<h:commandButton id="button1" value="Submit"
action="#{myBean.refreshForm}" />

<s:token id="token" />

</h:form>

And in my page bean method i wrote: 

public String refreshForm(){
   try {
   Thread.sleep(10000);
   } catch (InterruptedException e) {
     e.printStackTrace();
   }
     return "success";
 }

For the first click it calls public void validate(FacesContext context)
method in Token class.But for the immediate second click this method is
not called.

And i do not get the error messages displayed on my portal page.

Please help me understand why this happens.

Best Regards,

Pallavi 

 
 



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to