You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel <pd...@gmail.com> on 2008/03/26 11:17:41 UTC

struts2 dojo plugin (ajax)

I am trying to integrate struts and ajax trough dojo plugin. Freemarker is
trowing me an error :

freemarker.core.InvalidReferenceException: Expression parameters.pushId is
undefined on line 97, column 6 in template/ajax/submit.ftl.

Anyone know what that mean?

This is my jsp page :

<s:form name="search" action="search" namespace="/s" id="searchForm">
    <table width="100%" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="padding:10px;">

                    <table width="50%" align="center" cellpadding="0"
cellspacing="0">
                        <tr>
                            <td>
                                <s:textfield name="doc1" label="doc1"/>
                                      <s:submit value="Seach" theme="ajax"
id="searchPutton"/>
                            </td>
                        </tr>
                    </table>

            </td>
        </tr>
    </table>

</s:form>

My libs :

struts2-dojo-plugin-2.1.1-SNAPSHOT.jar
struts2-core-2.1.1-SNAPSHOT.jar

Re: struts2 dojo plugin (ajax)

Posted by Rane <ra...@madman.com.au>.
I had a similar problem - I think it is because the ajax freemarker templates
are being used, but
the component being referred to is using one of the non ajax components
behind the scenes.
anyhow, one way to fix it would be to use the dojo plugin tag for the submit
button ie

<sx:submit />

rather than

<s:submit />

Hope this makes sense.

Cheers,

Rane


Daniel Posirca wrote:
> 
> I am trying to integrate struts and ajax trough dojo plugin. Freemarker is
> trowing me an error :
> 
> freemarker.core.InvalidReferenceException: Expression parameters.pushId is
> undefined on line 97, column 6 in template/ajax/submit.ftl.
> 
> Anyone know what that mean?
> 
> This is my jsp page :
> 
> <s:form name="search" action="search" namespace="/s" id="searchForm">
>     <table width="100%" align="center" cellpadding="0" cellspacing="0">
>         <tr>
>             <td style="padding:10px;">
> 
>                     <table width="50%" align="center" cellpadding="0"
> cellspacing="0">
>                         <tr>
>                             <td>
>                                 <s:textfield name="doc1" label="doc1"/>
>                                       <s:submit value="Seach" theme="ajax"
> id="searchPutton"/>
>                             </td>
>                         </tr>
>                     </table>
> 
>             </td>
>         </tr>
>     </table>
> 
> </s:form>
> 
> My libs :
> 
> struts2-dojo-plugin-2.1.1-SNAPSHOT.jar
> struts2-core-2.1.1-SNAPSHOT.jar
> 
> 

-- 
View this message in context: http://www.nabble.com/struts2-dojo-plugin-%28ajax%29-tp16299581p17618098.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org