« Return to Thread: Form Action not resolving

Re: Form Action not resolving

by Geert Bevin :: Rate this Message:

Reply to Author | View in Thread


That error message says exactly what you need to do, you need to  
include those value tags so that RIFE can generate the hidden form  
parameters it needs.

On 07 Apr 2009, at 12:42, Rahul wrote:

>
> thanks Geert for your reply.... taking the first option that you
> suggested
> of registering the submission bean with that element.. i tried it with
>
> <submission name="search">
> <bean name="search"  
> classname="hotelbooking.elements.SearchCriteria"/
>>
> <!-- <param name="search"/>-->
> </submission>
>
> defined under that element.
>
> I am getting this error:-
>
> com.uwyn.rife.engine.exceptions.EngineException: The template value
> 'SUBMISSION:PARAMS:search'
> nor 'SUBMISSION:PARAMSJS:search'are not present.
> Replacement of the template value 'SUBMISSION:FORM:search' alone is
> not sufficient.
>
>
> Talking about the second option of using generateForm
>
> In my login class just after successful authentication I tried with
>
> generateForm(newTemplate, user);
>
> i still get the same thing
>
> http://localhost:8080/rife-jumpstart/[!V
> %20'SUBMISSION:FORM:search'/]?search=
>
> :(
>
> On Apr 7, 3:08 pm, Geert Bevin <gbe...@...> wrote:
>> For forms to be auto-generated, you need to have a submission bean
>> registered with that element or you have to call generateForm
>> explicitly. See the docs here:http://rifers.org/wiki/display/RIFE/Forms
>>
>> On 07 Apr 2009, at 12:05, Rahul wrote:
>>
>>
>>
>>
>>
>>> From my login page, after successful login, i have a search page.
>>> On sucessful login I do
>>
>>> newTemplate = getHtmlTemplate("search");
>>
>>> to get the search page.
>>
>>> On the search page I am doing something like this
>>
>>> <form name="search" action="[!V 'SUBMISSION:FORM:search'/]"
>>> method="get">
>>> <span[!V 'MARK:criteria'][!/V]>Search Criteria</span>
>>> <input type="text" name="search" value="${v PARAM:search}${/v}" /
>>>> <br /
>>>> <br />
>>
>>> <input type="submit" value="Search" /><br />
>>
>>> </form>
>>
>>> the problem is action is not resloving to search action.
>>> On clicking the search button i get something like this
>>
>>> http://localhost:8080/rife-jumpstart/[!V
>>> %20'SUBMISSION:FORM:search'/]?search=
>>
>>> Some enlightment needed.... :) considering the fact that i am a  
>>> newbie
>>> to this stuff
>>
>> --
>> Geert Bevin
>> Terracotta -http://www.terracotta.org
>> Uwyn "Use what you need" -http://uwyn.com
>> RIFE Java application framework -http://rifers.org
>> Flytecase Band -http://flytecase.be
>> Music and words -http://gbevin.com
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Form Action not resolving

 
 
 
Google
rifers.org web