--- Begin Message ---
Hi,
     If I want to pass the parameter to a backing bean method through 
<a4j:commandLink>, 
without using <a4j:actionParm> is there any another way to do it? If any please 
let me know.
Due to this error my application is crashing.

Thanks & Regards,
Basha,



-----Original Message-----
From: Paul Iov [mailto:[EMAIL PROTECTED]
Sent: Wed 2/28/2007 8:41 PM
To: MyFaces Discussion
Subject: Re: Request error, status 500: Internal Server Error Message:null
 
If you mean that jbpm stuff, the implementation of this method is:
public static String getParameter(String name) {
        return 
(String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(name);
}
So either with your FacesContext is something wrong or your 
buttonClicked just becomes null, and the exception is thrown later (i.e. 
while accessing buttonClicked as String). If so, it may be the same 
issue that I've discovered with <a4j:actionParam> but unfortunately I 
can't yet figure it out precisely. In my application <a4j:actionParam> 
'less' the value, if it's inside some container with rendered=false. 
Your issue seems to be very similar. If nothing helps, I'd try to ask 
this in a4j support forum.

regards,
paul


[EMAIL PROTECTED] schrieb:
> Hi,
>       No I am getting the resource bundles messages fine only. Only
> the problem is 
> When I am clicking on the command link it is calling the bean method.
> Inside the bean method I am getting the parameter which I sent using
> <a4j:actionParam> tag as follows,
>
>       String buttonClicked = JsfHelper.getParameter("buttonName");
>
> Then here I am getting null pointer.
>
> Regards,
> Basha
>
> -----Original Message-----
> From: Paul Iov [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 28, 2007 7:35 PM
> To: MyFaces Discussion
> Subject: Re: Request error, status 500: Internal Server Error
> Message:null
>
> Hi Basha,
>
> it sounds like some session expiration issue. Aren't you getting the 
> same exception after restart of JVM? If so, the issue can be also your 
> resource bundle msg['historyView.leftArrowImage']
>
> regards,
> paul
>
> [EMAIL PROTECTED] schrieb:
>   
>> Hi,
>>
>> In my web application I am using MyFaces, a4j tags and JBoss server.
>>
>> When I am starting my server for the first time my application is 
>> running fine.
>>
>> After that if I redeploy my application without restarting my server 
>> then I am getting
>>
>> "*Request error, status 500: Internal Server Error Message: null" *if 
>> I click on the <a4j:comandLink>
>>
>> But I am passing one parameter to the backing bean through 
>> <a4j:actionParam> tag.
>>
>> My code is like as follows,
>>
>> <a4j:commandLink id="leftScrollBarButton" 
>> action="#{customerBean.regenerateHistoryView}" >
>>
>> <img border="0" src="images/bluearrowleft.gif" 
>> title="#{msg['historyView.forward']}" 
>> alt="#{msg['historyView.leftArrowImage']}"></img>
>>
>> <a4j:actionparam id="buttonName" name="buttonName"
>>     
> value="button_left"/>
>   
>> </a4j:commandLink>
>>
>> Moreover in my server logs I am getting "Null Pointer exception". Can 
>> any body have any idea?
>>
>> Thanks & Regards,
>>
>> Basha
>>
>>
>> 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
>>
>>     
>
>
>
> 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
>
>   


<<winmail.dat>>


--- End Message ---
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