Stefan Aigner wrote:
> 
> Hi all,
> 
> I want to use MyFacesGenericPortlet to convert existing portlets running
> under Bea Weblogic Portal 8.1 SP5 to use JSF.
> 
> I am relatively new to this, so I started with the MyFaces expamples
> app. I tried to convert it into a portlet by following the steps under
> 
> http://wiki.apache.org/myfaces/CreatingJSFPortlets.
> 
> When I now deploy the MyFaces examples app as a portlet, I get this
> exception:
> 
> java.lang.IllegalArgumentException: Relative path [sample1.jsf] must
> start with a / at
> com.bea.netuix.servlets.controls.portlet.JavaPortlet$LocalUrlWriter.rewriteUrl(JavaPortlet.java:1232)
> at
> com.bea.portlet.container.PortletResponseImpl.encodeURL(PortletResponseImpl.java:57)
> at
> org.apache.myfaces.context.portlet.PortletExternalContextImpl.encodeResourceURL(PortletExternalContextImpl.java:197)
> 
> 
> 
> Does any one know what this could mean?

It means where you have "sample1.jsf" you need "/sample1.jsf"

> 
> There are also several general questions, which are not completely clear
> to me? As stated in the documentation above, I copied all what was
> included in the web.xml of the MyFaces examples app into the web.xml of
> my portal application.
> 
> What I do not understand is what I need the FacesServlet for. When I
> click on a link in my portlet, it is the portal servlet who handles the
> request.
> 
> In the examples app, there are links of the type
> 
>             <h:outputLink value="sample1.jsf" ><f:verbatim>Sample
> 1</f:verbatim></h:outputLink>
> 
> Does JSF behind the scenes automatically change the link to a link to my
> portal servlet? If not, do I have to change the links manually to be
> links to the portal servlet? If that's the case, how do I tell the
> portal servlet what view id to display next?
> 
> I just don't get the point of using the faces servlet in a portal
> environment.
> 
> 
> I would highly appreciate any help, hints and comments.
> 
> 
> Thanks in advance,
> 
> Stefan
> 
> 
> _______________________________________________________
> 
> ACHTUNG!
> Ab 19.06.2006 neue Postanschrift:
> _______________________________________________________
> 
> Stefan Aigner . adesso AG . Rotherstrasse 19 . 10245 Berlin
> 
> tel.:  +49-30-7262033-42     mobil:  +49-178-2808102
> fax:  +49-30-7262033-99     email:  [EMAIL PROTECTED]
> 
>                               http://www.adesso.de
> _______________________________________________________


-- 
Dave Brondsema
Software Developer
Cornerstone University

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to