On Sat, Sep 11, 2010 at 12:33 AM, Nikolaos Giannopoulos
<[email protected]> wrote:
> Lev,
>
> I don't know JMesa and it isn't totally clear when you mention the
> clicking of table buttons whether you are posting the form to the action
> bean OR that JMesa is using Ajax calls to get the new table data... and
> if its the latter then the request will require a web context... .
>
> Also shouldn't your request be wrapped in a Stripes form tag so that you
> can point to the action bean?
>
> HTH,
>
> --Nikolaos
>
>
>
> Lev wrote:
>> i am trying to generate tables with JMesa v3. i am able to successfully
>> create such a table; however, i am having trouble successfully implementing
>> filtering, paging, and sorting (which relies on javascript).
>>
>> in my jsp, i have included the following:
>>
>>       <script type="text/javascript">
>>            function onInvokeAction(id, action) {
>>                $.jmesa.setExportToLimit(id, '');
>>                $.jmesa.createHiddenInputFieldsForLimitAndSubmit(id);
>>            }
>>        </script>
>>
>> i have wrapped the table with the following tag:
>>
>>            <form name="personListForm" action="example.PersonListActionBean">
>>                ${actionBean.table}
>>            </form>
>>
>> however, upon hitting any of the table buttons (for sorting,
>> paging, or filtering), i receive an error such as:
>>
>> "The requested resource (/admin/example.PersonListActionBean) is not 
>> available."
>>
>> the JSP from which the submit is attempted resides in a directory
>> called "admin". i assume that this is why "/admin/" is being appended
>> to the request path.
>>
>> the controller resides in src/example/PersonListActionBean.
>>
>> does anybody have suggestions on how to work around this problem?
>>
>> thank you in advance.
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

hi nikolaos,

thank you for your help. yes, indeed, my problem stemmed from
the fact that i wrapped my jmesa table in  a "<form>" tag rather
than an "<s:form>" tag.

once i made this change, i was able to successfully implement
jmesa tables by following the tutorial at:

http://code.google.com/p/jmesa/wiki/Javascript

to echo freddy's sentiment in an earlier thread, although there is
a bit more overhead in getting JMesa up and running, i do prefer
JMesa to DisplayTag because it allows me to create tables on
the Controller side in Java.

thank you again for your help.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to