You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andriy <An...@gmail.com> on 2005/08/25 17:27:35 UTC

Problem with Form component in portlet application

Hello!

I'm developing portlet application. But when I use any link or form component, I
have exception "only absolute URLs or full path URIs are allowed".
I'm using uPortal as portlet container.

Thanks for any help



View.java
-----------------------------------
import org.apache.tapestry.IRequestCycle;

import org.apache.tapestry.html.BasePage;

public class View extends BasePage {
	
	public void onSubmit(IRequestCycle cycle) { // (IRequestCycle cycle)
		System.out.println("Listener 'onSubmit' called.");
	}

}
-----------------------------------

View.page
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

<page-specification class="View">
</page-specification>
-----------------------------------

View.html:
---------------------------------
<form jwcid="@Form" listener="ognl:listeners.onSubmit">
	<input type="submit" value="Submit" />
</form>
-----------------------------------

Exception:
--------------------------------
org.apache.hivemind.ApplicationRuntimeException

only absolute URLs or full path URIs are allowed
component	$View_0@9bfee2[View] 	
location	context:/WEB-INF/View.page, line 6, column 34

1	<?xml version="1.0" encoding="UTF-8"?>	
2	<!DOCTYPE page-specification PUBLIC	
3	"-//Apache Software Foundation//Tapestry Specification 4.0//EN"	
4	"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">	
5		
6	<page-specification class="View">	
7	</page-specification>
----------------------------------


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


Re: Problem with Form component in portlet application

Posted by Andriy <An...@gmail.com>.
Ryan Wynn <rwynn <at> us.ibm.com> writes:

> 
> Andriy,
> 
> I think you need to make the following change in View.html.  Everything 
> else looks good.
> 
>  <input type="submit" jwcid=" <at> Submit" value="Submit" />
>         instead of
>  <input type="submit" value="Submit" />
> 
> Not sure if that will fix your problem but it's worth a shot.
> 
> Ryan
> 


Hello, Ryan!

Thank you for you reply.
But it is not working :(
Mayby the problem is in uPortal? Or in hivemodule.xml?


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


Re: Problem with Form component in portlet application

Posted by Geoff Longman <gl...@gmail.com>.
It appears the portlet container is not happy with an url that the
Tapestry Form component is trying to embed into the form as a hidden
field.

Thus,  I believe this error is a bug in Tapestry portlet support and
you should open an issue in JIRA (I'm not familliar with Tap Portlet
support so I can't help much further).

Make sure you include the trace in the issue.

Cheers,

Geoff

On 8/26/05, Andriy <An...@gmail.com> wrote:
> Thank for you attention, Geoff.
> I'm using uPortal 2.4.2.
> Stack tree, Hivemodule.xml and PortletT2.application
> are listed bellow.
> 
> PortletT2.application
> -------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> 
> <application name="tapestry2">
> 
> </application>
> ------------------------
> 
> Hivemodule.xml
> ------------------------
> <?xml version="1.0"?>
> <module id="tapestry2" version="1.0.0">
>         <contribution
> configuration-id="tapestry.portlet.resolver.PageResolverRules">
>                 <match portlet-mode="view" page="View"/>
>         </contribution>
> </module>
> ------------------------
> 
> Here is the stack tree:
> ------------------------
> java.lang.IllegalArgumentException
> 
> only absolute URLs or full path URIs are allowed
> 
> org.apache.pluto.core.impl.PortletResponseImpl.encodeURL(
>  PortletResponseImpl.java:120)
> org.apache.tapestry.portlet.PortletWebResponse.encodeURL(
>  PortletWebResponse.java:60)
> $WebResponse_105f166d27d.encodeURL($WebResponse_105f166d27d.java)
> $WebResponse_105f166d17d.encodeURL($WebResponse_105f166d17d.java)
> org.apache.tapestry.engine.RequestCycle.encodeURL(RequestCycle.java:205)
> org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:68)
> org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:464)
> org.apache.tapestry.form.Form.renderComponent(Form.java:250)
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
> org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:274)
> org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:368)
> org.apache.tapestry.portlet.PortletRendererImpl.renderPage(
>  PortletRendererImpl.java:70)
> $PortletRenderer_105f166d1fa.renderPage(
>  $PortletRenderer_105f166d1fa.java)
> $PortletRenderer_105f166d1f9.renderPage(
>  $PortletRenderer_105f166d1f9.java)
> org.apache.tapestry.portlet.PortletHomeService.service(
>  PortletHomeService.java:83)
> $IEngineService_105f166d1e5.service($IEngineService_105f166d1e5.java)
> org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(
>  EngineServiceInnerProxy.java:74)
> org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
>  EngineServiceOuterProxy.java:65)
> org.apache.tapestry.engine.AbstractEngine.service(
> AbstractEngine.java:254)
> org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
>  InvokeEngineTerminator.java:60)
> $WebRequestServicer_105f166d1b2.service(
>  $WebRequestServicer_105f166d1b2.java)
> $WebRequestServicer_105f166d1b1.service(
>  $WebRequestServicer_105f166d1b1.java)
> $WebRequestServicer_105f166d1b0.service(
>  $WebRequestServicer_105f166d1b0.java)
> $WebRequestServicer_105f166d1af.service(
>  $WebRequestServicer_105f166d1af.java)
> org.apache.tapestry.portlet
>  .RenderRequestServicerToWebRequestServicerBridge
>  .service(RenderRequestServicerToWebRequestServicerBridge.java:49)
> $RenderRequestServicer_105f166d1aa.service(
>  $RenderRequestServicer_105f166d1aa.java)
> $RenderRequestServicer_105f166d1a9.service(
>  $RenderRequestServicer_105f166d1a9.java)
> $RenderRequestServicer_105f166d1a4.service(
>  $RenderRequestServicer_105f166d1a4.java)
> $RenderRequestServicer_105f166d1a3.service(
>  $RenderRequestServicer_105f166d1a3.java)
> org.apache.tapestry.portlet.ApplicationPortlet.render(
>  ApplicationPortlet.java:161)
> org.apache.pluto.core.PortletServlet.dispatch(
>  PortletServlet.java:205)
> org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>  ApplicationFilterChain.java:237)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>  ApplicationFilterChain.java:157)
> org.apache.catalina.core.ApplicationDispatcher.invoke(
>  ApplicationDispatcher.java:704)
> org.apache.catalina.core.ApplicationDispatcher.doInclude(
>  ApplicationDispatcher.java:590)
> org.apache.catalina.core.ApplicationDispatcher.include(
>  ApplicationDispatcher.java:510)
> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(
>  PortletInvokerImpl.java:120)
> org.apache.pluto.invoker.impl.PortletInvokerImpl.render(
>  PortletInvokerImpl.java:73)
> org.apache.pluto.PortletContainerImpl.renderPortlet(
>  PortletContainerImpl.java:103)
> org.jasig.portal.channels.portlet.CPortletAdapter.getMarkup(
>  CPortletAdapter.java:555)
> org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters(
>  CPortletAdapter.java:482)
> org.jasig.portal.MultithreadedCharacterChannelAdapter
>  .renderCharacters(
>  MultithreadedCharacterChannelAdapter.java:71)
> org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:483)
> org.jasig.portal.utils.threading.Worker.run(Worker.java:88)
> ------------------------
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

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


Re: Problem with Form component in portlet application

Posted by Andriy <An...@gmail.com>.
Thank for you attention, Geoff.
I'm using uPortal 2.4.2.
Stack tree, Hivemodule.xml and PortletT2.application 
are listed bellow.

PortletT2.application
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

<application name="tapestry2">
    
</application>
------------------------

Hivemodule.xml
------------------------
<?xml version="1.0"?>
<module id="tapestry2" version="1.0.0">
	<contribution 
configuration-id="tapestry.portlet.resolver.PageResolverRules">
		<match portlet-mode="view" page="View"/>
	</contribution> 
</module>
------------------------

Here is the stack tree:
------------------------
java.lang.IllegalArgumentException

only absolute URLs or full path URIs are allowed

org.apache.pluto.core.impl.PortletResponseImpl.encodeURL(
 PortletResponseImpl.java:120)
org.apache.tapestry.portlet.PortletWebResponse.encodeURL(
 PortletWebResponse.java:60)
$WebResponse_105f166d27d.encodeURL($WebResponse_105f166d27d.java)
$WebResponse_105f166d17d.encodeURL($WebResponse_105f166d17d.java)
org.apache.tapestry.engine.RequestCycle.encodeURL(RequestCycle.java:205)
org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:68)
org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:464)
org.apache.tapestry.form.Form.renderComponent(Form.java:250)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:274)
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:368)
org.apache.tapestry.portlet.PortletRendererImpl.renderPage(
 PortletRendererImpl.java:70)
$PortletRenderer_105f166d1fa.renderPage(
 $PortletRenderer_105f166d1fa.java)
$PortletRenderer_105f166d1f9.renderPage(
 $PortletRenderer_105f166d1f9.java)
org.apache.tapestry.portlet.PortletHomeService.service(
 PortletHomeService.java:83)
$IEngineService_105f166d1e5.service($IEngineService_105f166d1e5.java)
org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(
 EngineServiceInnerProxy.java:74)
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
 EngineServiceOuterProxy.java:65)
org.apache.tapestry.engine.AbstractEngine.service(
AbstractEngine.java:254)
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
 InvokeEngineTerminator.java:60)
$WebRequestServicer_105f166d1b2.service(
 $WebRequestServicer_105f166d1b2.java)
$WebRequestServicer_105f166d1b1.service(
 $WebRequestServicer_105f166d1b1.java)
$WebRequestServicer_105f166d1b0.service(
 $WebRequestServicer_105f166d1b0.java)
$WebRequestServicer_105f166d1af.service(
 $WebRequestServicer_105f166d1af.java)
org.apache.tapestry.portlet
 .RenderRequestServicerToWebRequestServicerBridge
 .service(RenderRequestServicerToWebRequestServicerBridge.java:49)
$RenderRequestServicer_105f166d1aa.service(
 $RenderRequestServicer_105f166d1aa.java)
$RenderRequestServicer_105f166d1a9.service(
 $RenderRequestServicer_105f166d1a9.java)
$RenderRequestServicer_105f166d1a4.service(
 $RenderRequestServicer_105f166d1a4.java)
$RenderRequestServicer_105f166d1a3.service(
 $RenderRequestServicer_105f166d1a3.java)
org.apache.tapestry.portlet.ApplicationPortlet.render(
 ApplicationPortlet.java:161)
org.apache.pluto.core.PortletServlet.dispatch(
 PortletServlet.java:205)
org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:237)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:157)
org.apache.catalina.core.ApplicationDispatcher.invoke(
 ApplicationDispatcher.java:704)
org.apache.catalina.core.ApplicationDispatcher.doInclude(
 ApplicationDispatcher.java:590)
org.apache.catalina.core.ApplicationDispatcher.include(
 ApplicationDispatcher.java:510)
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(
 PortletInvokerImpl.java:120)
org.apache.pluto.invoker.impl.PortletInvokerImpl.render(
 PortletInvokerImpl.java:73)
org.apache.pluto.PortletContainerImpl.renderPortlet(
 PortletContainerImpl.java:103)
org.jasig.portal.channels.portlet.CPortletAdapter.getMarkup(
 CPortletAdapter.java:555)
org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters(
 CPortletAdapter.java:482)
org.jasig.portal.MultithreadedCharacterChannelAdapter
 .renderCharacters(
 MultithreadedCharacterChannelAdapter.java:71)
org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:483)
org.jasig.portal.utils.threading.Worker.run(Worker.java:88)
------------------------







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


Re: Problem with Form component in portlet application

Posted by Geoff Longman <gl...@gmail.com>.
pls send the stack trace

Geoff

On 8/25/05, Ryan Wynn <rw...@us.ibm.com> wrote:
> Andriy,
> 
> I think you need to make the following change in View.html.  Everything
> else looks good.
> 
>  <input type="submit" jwcid="@Submit" value="Submit" />
>         instead of
>  <input type="submit" value="Submit" />
> 
> Not sure if that will fix your problem but it's worth a shot.
> 
> Ryan
> 
> 
> 
> 
> Andriy <An...@gmail.com>
> Sent by: news <ne...@sea.gmane.org>
> 08/25/2005 11:27 AM
> Please respond to
> "Tapestry users"
> 
> 
> To
> tapestry-user@jakarta.apache.org
> cc
> 
> Subject
> Problem with Form component in portlet application
> 
> 
> 
> 
> 
> 
> Hello!
> 
> I'm developing portlet application. But when I use any link or form
> component, I
> have exception "only absolute URLs or full path URIs are allowed".
> I'm using uPortal as portlet container.
> 
> Thanks for any help
> 
> 
> 
> View.java
> -----------------------------------
> import org.apache.tapestry.IRequestCycle;
> 
> import org.apache.tapestry.html.BasePage;
> 
> public class View extends BasePage {
> 
>                  public void onSubmit(IRequestCycle cycle) { //
> (IRequestCycle cycle)
>                                  System.out.println("Listener 'onSubmit'
> called.");
>                  }
> 
> }
> -----------------------------------
> 
> View.page
> -----------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE page-specification PUBLIC
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> 
> <page-specification class="View">
> </page-specification>
> -----------------------------------
> 
> View.html:
> ---------------------------------
> <form jwcid="@Form" listener="ognl:listeners.onSubmit">
>                  <input type="submit" value="Submit" />
> </form>
> -----------------------------------
> 
> Exception:
> --------------------------------
> org.apache.hivemind.ApplicationRuntimeException
> 
> only absolute URLs or full path URIs are allowed
> component                $View_0@9bfee2[View]
> location                 context:/WEB-INF/View.page, line 6, column 34
> 
> 1                <?xml version="1.0" encoding="UTF-8"?>
> 2                <!DOCTYPE page-specification PUBLIC
> 3                "-//Apache Software Foundation//Tapestry Specification
> 4.0//EN"
> 4                "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd
> ">
> 5
> 6                <page-specification class="View">
> 7                </page-specification>
> ----------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

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


Re: Problem with Form component in portlet application

Posted by Ryan Wynn <rw...@us.ibm.com>.
Andriy,

I think you need to make the following change in View.html.  Everything 
else looks good.

 <input type="submit" jwcid="@Submit" value="Submit" />
        instead of
 <input type="submit" value="Submit" />

Not sure if that will fix your problem but it's worth a shot.

Ryan




Andriy <An...@gmail.com> 
Sent by: news <ne...@sea.gmane.org>
08/25/2005 11:27 AM
Please respond to
"Tapestry users"


To
tapestry-user@jakarta.apache.org
cc

Subject
Problem with Form component in portlet application






Hello!

I'm developing portlet application. But when I use any link or form 
component, I
have exception "only absolute URLs or full path URIs are allowed".
I'm using uPortal as portlet container.

Thanks for any help



View.java
-----------------------------------
import org.apache.tapestry.IRequestCycle;

import org.apache.tapestry.html.BasePage;

public class View extends BasePage {
 
                 public void onSubmit(IRequestCycle cycle) { // 
(IRequestCycle cycle)
                                 System.out.println("Listener 'onSubmit' 
called.");
                 }

}
-----------------------------------

View.page
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

<page-specification class="View">
</page-specification>
-----------------------------------

View.html:
---------------------------------
<form jwcid="@Form" listener="ognl:listeners.onSubmit">
                 <input type="submit" value="Submit" />
</form>
-----------------------------------

Exception:
--------------------------------
org.apache.hivemind.ApplicationRuntimeException

only absolute URLs or full path URIs are allowed
component                $View_0@9bfee2[View] 
location                 context:/WEB-INF/View.page, line 6, column 34

1                <?xml version="1.0" encoding="UTF-8"?> 
2                <!DOCTYPE page-specification PUBLIC 
3                "-//Apache Software Foundation//Tapestry Specification 
4.0//EN" 
4                "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd
"> 
5 
6                <page-specification class="View"> 
7                </page-specification>
----------------------------------


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