This content has been marked as final.
Show 4 replies
-
1. Re: RequestParameter from AbstractResource
frer Mar 16, 2009 2:09 PM (in response to frer)Anyone?
Maybe there's a way to get them from the servletcontext but I can't seem to figure out how.
Thank you
-
2. Re: RequestParameter from AbstractResource
oguzyalcin.oguzhanyalcin.gazi.edu.tr Mar 16, 2009 2:59 PM (in response to frer)Did you try to assign the values from *.page.xml to entities like:
<param name="startDate" value="#{importationResource.startDate}"/>
but probably you must remove @RequestParameter and define a getter and setter for this fields.
-
3. Re: RequestParameter from AbstractResource
frer Mar 16, 2009 3:11 PM (in response to frer)Hi,
Thanks for your answer. Unfortunately, I don't have a graphical interface for this Resource (therefore I don't have a page). I simply want to have a callable url with the known parameters.
Unless it is possible to define a page without a view-id?
-
4. Re: RequestParameter from AbstractResource
frer Mar 16, 2009 4:23 PM (in response to frer)Finally I solved this by moving the @RequestParameter to my Action that was called by the resource.
The action was able to read those parameters.
Thanks for your help