Hi Volker,

thanks for ur always warm-hearted reply!:)

Do you mean sth. like this in InputSuggestAjaxRenderer.java?

        out.writeText("', {\n" +
                "      method:       'post',\n" +
...
                "      parameters: 'affectedAjaxComponent=" + clientId + "',\n" 
+
...

It seems that it still not work...

Cheers,

Haihua



-----Ursprüngliche Nachricht-----
Von: Volker Weber [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 9. Februar 2006 11:50
An: MyFaces Discussion
Betreff: Re: integration problem with <s:inputSuggestAjax> and portlet

Hi,

i think this can be solved by adding the parameters as post parameter to
the options, instead of empty.

I will give it a try this afternoon (german time).

Regards,
  Volker

Luo. Haihua wrote:
> Hi dear all,
> 
>  
> 
> I am using portlet and want to insert a tag <s:inputSuggestAjax> into
> one of my .jsp page. However, it doesn't work due to a javascript error
> "element.getClassName has no properties" in firefox.
> 
>  
> 
> I have read the generated html file, even jumped deeply into the source
> codes of myfaces and found following problem:
> 
>  
> 
> Within the generated html page, myfaces generates following javascript
> codes for inputSuggestAjax:
> 
>  
> 
>                   <SCRIPT type=text/javascript><!--
> 
> new
> Ajax.MyFacesAutocompleter('Pluto_ProcessOverviewPortlet_r1_c1_p1__id0:Pluto_ProcessOverviewPortlet_r1_c1_p1__id2','Pluto_ProcessOverviewPortlet_r1_c1_p1__id0:Pluto_ProcessOverviewPortlet_r1_c1_p1__id2_auto_complete','*/pluto/portal/ProcessOverviewPortlet/_ac_ProcessOverviewPortlet_r1_c1_p1/AC/_pid/ProcessOverviewPortlet_r1_c1_p1**?**org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=%2Fview.jsp**?**affectedAjaxComponent=Pluto_ProcessOverviewPortlet_r1_c1_p1__id0:Pluto_ProcessOverviewPortlet_r1_c1_p1__id2*',
> {
> 
>       method:       'post',
> 
>       asynchronous: true,
> 
>       parameters: '',
> 
>       callback: function(element,entry) {return
> entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById('jsf_viewid').value)}
>    
> })
> 
> //--></SCRIPT>
> 
>  
> 
> Note that the third parameter of the js function, which should be an
> encodeURL, contains TWO "?", the first is generated by the portlet, the
> second by the myfaces! Therefore it is no more a valid encodeURL to
> parse by myfaces!
> 
>  
> 
> So it seems that inputSuggestAjax does not support any call by a page
> whose URL already contains parameters. Any tips or suggestions how to
> resolve this problem?
> 
>  
> 
> Mit freundlichen Grüßen / Kindest regards
> 
>  
> 
> Haihua Luo
> 
>  

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to