You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jamie Orchard-Hays <ja...@dang.com> on 2004/12/13 17:43:31 UTC

Table paging broken with Friendly URLs

The paging mechanism has broken while using Friendly URLs. Has anyone else 
encountered this? Or is anyone using these together without errors?

Here's what I get when I click on either the paging arrow or a page number 
(catalog is a subdir that holds my actual page):

 org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not found in 
application namespace.

 Stack Trace:
  a.. 
org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpecificationResolver.java:120)
  b.. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
  c.. org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
  d.. 
org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddress.java:91)
  e.. 
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:183)
  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  g.. 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  h.. 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  i.. java.lang.reflect.Method.invoke(Method.java:324)
  j.. 
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)
  k.. 
org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
  l.. 
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)
  m.. 
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)
  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
  o.. 
org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
  p.. 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
  q.. 
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197)
  r.. 
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
  v.. 
jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilter.java:70)
  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
  aa.. 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
  ab.. 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
  ad.. 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've been working on some other stuff this afternoon. If I don't get to it 
today, I'll be on it tomorrow morning.

Jamie


----- Original Message ----- 
From: "Paul Ferraro" <pm...@columbia.edu>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Monday, December 13, 2004 1:29 PM
Subject: Re: Table paging broken with Friendly URLs


>I haven't used the two together, but I also cannot seem to find anything in 
>the table source code that would cause the page name to be hacked.  Any 
>progress on your end?  Is this happening in all of your Tables?
>
> Paul
>
> Jamie Orchard-Hays wrote:
>
>> The paging mechanism has broken while using Friendly URLs. Has anyone 
>> else encountered this? Or is anyone using these together without errors?
>>
>> Here's what I get when I click on either the paging arrow or a page 
>> number (catalog is a subdir that holds my actual page):
>>
>> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not found 
>> in application namespace.
>>
>> Stack Trace:
>>  a.. 
>> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpecificationResolver.java:120)
>>  b.. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>  c.. 
>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>  d.. 
>> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddress.java:91)
>>  e.. 
>> org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:183)
>>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  g.. 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  h.. 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>  j.. 
>> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)
>>  k.. 
>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
>>  l.. 
>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)
>>  m.. 
>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)
>>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>  o.. 
>> org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
>>  p.. 
>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
>>  q.. 
>> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197)
>>  r.. 
>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
>>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>  v.. 
>> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilter.java:70)
>>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>  aa.. 
>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
>>  ab.. 
>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
>>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>  ad.. 
>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
>>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
It seems to be broken in TablePages:
public void changePage(IRequestCycle objCycle)
    {
        Object[] arrParameters = objCycle.getServiceParameters();
        if (arrParameters.length != 2
            && !(arrParameters[0] instanceof ComponentAddress)
            && !(arrParameters[1] instanceof Integer))
        {
            // error
            return;
        }

        ComponentAddress objAddress = (ComponentAddress) arrParameters[0];
        ITableModelSource objSource = (ITableModelSource) 
objAddress.findComponent(objCycle);
        setCurrentPage(objSource, ((Integer) arrParameters[1]).intValue());

        // ensure that the change is saved
        objSource.fireObservedStateChange();
    }

The call to objAddress.findComponent(objCycle) only returns the prefix. In 
my case I have a page at catalog/ViewCatalog.tap, but only "catalog" is 
being returned.

Jamie


----- Original Message ----- 
From: "Vladimir Drndarski" <vl...@cox.net>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Monday, December 13, 2004 11:08 PM
Subject: RE: Table paging broken with Friendly URLs


> I'm getting this issue too.
>
> I managed to trace it to the PageSpecificationResolver.searchForPage 
> method,
> but got stopped there and was too busy to dig much deeper into it.
>
> As a workaround I just renamed the page containing the table back to the
> original pre-friendlyURL page name.
>
>
> Vladimir
>
>
> -----Original Message-----
> From: Paul Ferraro [mailto:pmf8@columbia.edu]
> Sent: Monday, December 13, 2004 10:29 AM
> To: Tapestry users
> Subject: Re: Table paging broken with Friendly URLs
>
>
> I haven't used the two together, but I also cannot seem to find anything
> in the table source code that would cause the page name to be hacked.
> Any progress on your end?  Is this happening in all of your Tables?
>
> Paul
>
> Jamie Orchard-Hays wrote:
>
>> The paging mechanism has broken while using Friendly URLs. Has anyone
>> else encountered this? Or is anyone using these together without errors?
>>
>> Here's what I get when I click on either the paging arrow or a page
>> number (catalog is a subdir that holds my actual page):
>>
>> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>> found in application namespace.
>>
>> Stack Trace:
>>  a..
>>
> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpecifica
> tionResolver.java:120)
>>
>>  b.. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>  c..
>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>  d..
>>
> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddress.jav
> a:91)
>>
>>  e..
>>
> org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePage
> s.java:183)
>>
>>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  g..
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>>
>>  h..
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>>
>>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>  j..
>>
> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java
> :257)
>>
>>  k..
>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
>>  l..
>>
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMa
> p.java:97)
>>
>>  m..
>>
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(L
> istenerMap.java:102)
>>
>>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>  o..
>> org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
>>  p..
>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
>>
>>  q..
>>
> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197
> )
>>
>>  r..
>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
>>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>  v..
>>
> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilter.jav
> a:70)
>>
>>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>  aa..
>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
>>  ab..
>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
>>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>  ad..
>>
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457
> )
>>
>>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


RE: Table paging broken with Friendly URLs

Posted by Vladimir Drndarski <vl...@cox.net>.
I'm getting this issue too.

I managed to trace it to the PageSpecificationResolver.searchForPage method,
but got stopped there and was too busy to dig much deeper into it.

As a workaround I just renamed the page containing the table back to the
original pre-friendlyURL page name.


Vladimir


-----Original Message-----
From: Paul Ferraro [mailto:pmf8@columbia.edu]
Sent: Monday, December 13, 2004 10:29 AM
To: Tapestry users
Subject: Re: Table paging broken with Friendly URLs


I haven't used the two together, but I also cannot seem to find anything
in the table source code that would cause the page name to be hacked.
Any progress on your end?  Is this happening in all of your Tables?

Paul

Jamie Orchard-Hays wrote:

> The paging mechanism has broken while using Friendly URLs. Has anyone
> else encountered this? Or is anyone using these together without errors?
>
> Here's what I get when I click on either the paging arrow or a page
> number (catalog is a subdir that holds my actual page):
>
> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
> found in application namespace.
>
> Stack Trace:
>  a..
>
org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpecifica
tionResolver.java:120)
>
>  b.. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>  c..
> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>  d..
>
org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddress.jav
a:91)
>
>  e..
>
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePage
s.java:183)
>
>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  g..
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
>  h..
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
>
>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>  j..
>
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java
:257)
>
>  k..
> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
>  l..
>
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMa
p.java:97)
>
>  m..
>
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(L
istenerMap.java:102)
>
>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>  o..
> org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
>  p..
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
>
>  q..
>
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197
)
>
>  r..
> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>  v..
>
jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilter.jav
a:70)
>
>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>  aa..
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
>  ab..
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>  ad..
>
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457
)
>
>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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


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


Re: Table paging broken with Friendly URLs

Posted by Paul Ferraro <pm...@columbia.edu>.
I haven't used the two together, but I also cannot seem to find anything 
in the table source code that would cause the page name to be hacked.  
Any progress on your end?  Is this happening in all of your Tables?

Paul

Jamie Orchard-Hays wrote:

> The paging mechanism has broken while using Friendly URLs. Has anyone 
> else encountered this? Or is anyone using these together without errors?
>
> Here's what I get when I click on either the paging arrow or a page 
> number (catalog is a subdir that holds my actual page):
>
> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not 
> found in application namespace.
>
> Stack Trace:
>  a.. 
> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpecificationResolver.java:120) 
>
>  b.. org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>  c.. 
> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>  d.. 
> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddress.java:91) 
>
>  e.. 
> org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:183) 
>
>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  g.. 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>  h.. 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>  j.. 
> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257) 
>
>  k.. 
> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
>  l.. 
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97) 
>
>  m.. 
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102) 
>
>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>  o.. 
> org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
>  p.. 
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872) 
>
>  q.. 
> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197) 
>
>  r.. 
> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>  v.. 
> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilter.java:70) 
>
>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>  aa.. 
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
>  ab.. 
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>  ad.. 
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457) 
>
>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've been tracing through the app with a debugger.

In DirectService.service(), parameters returns the _pageName = "catalog" 
rather than "catalog/ViewCatalog" and _idPath = 
"ViewCatalog/catalogTable.tableElement.tableView"
(Object[] parameters = getParameters(cycle);)

However, even if I change the value them to "catalog/ViewCatalog" and 
"catalogTable.tableElement.tableView" in the debugger and continue the 
execution, the page fails, though with a different error:

org.apache.tapestry.ApplicationRuntimeException: Either the tableModel 
parameter or both source and columns parameters must be specified by 
component catalog/ViewCatalog/catalogTable.tableElement.tableView
  at 
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:199)
  at 
org.apache.tapestry.contrib.table.components.TablePages.setCurrentPage(TablePages.java:192)
  at 
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:184)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Jamie


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've been tracing through the app with a debugger.

In DirectService.service(), parameters returns the _pageName = "catalog" 
rather than "catalog/ViewCatalog" and _idPath = 
"ViewCatalog/catalogTable.tableElement.tableView"
(Object[] parameters = getParameters(cycle);)

However, even if I change the value them to "catalog/ViewCatalog" and 
"catalogTable.tableElement.tableView" in the debugger and continue the 
execution, the page fails, though with a different error:

org.apache.tapestry.ApplicationRuntimeException: Either the tableModel
parameter or both source and columns parameters must be specified by
component catalog/ViewCatalog/catalogTable.tableElement.tableView
  at 
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:199)
  at 
org.apache.tapestry.contrib.table.components.TablePages.setCurrentPage(TablePages.java:192)
  at 
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:184)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Jamie

In this error, m_objTableModel is null in TableView.




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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've been tracing through the app with a debugger.

In DirectService.service(), parameters returns the _pageName = "catalog" 
rather than "catalog/ViewCatalog" and _idPath = 
"ViewCatalog/catalogTable.tableElement.tableView"
(Object[] parameters = getParameters(cycle);)

However, even if I change the value them to "catalog/ViewCatalog" and 
"catalogTable.tableElement.tableView" in the debugger and continue the 
execution, the page fails, though with a different error:

org.apache.tapestry.ApplicationRuntimeException: Either the tableModel 
parameter or both source and columns parameters must be specified by 
component catalog/ViewCatalog/catalogTable.tableElement.tableView
  at 
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:199)
  at 
org.apache.tapestry.contrib.table.components.TablePages.setCurrentPage(TablePages.java:192)
  at 
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:184)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Jamie


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've been tracing through the app with a debugger.

In DirectService.service(), parameters returns the _pageName = "catalog" 
rather than "catalog/ViewCatalog" and _idPath = 
"ViewCatalog/catalogTable.tableElement.tableView"
(Object[] parameters = getParameters(cycle);)

However, even if I change the value them to "catalog/ViewCatalog" and 
"catalogTable.tableElement.tableView" in the debugger and continue the 
execution, the page fails, though with a different error:

org.apache.tapestry.ApplicationRuntimeException: Either the tableModel
parameter or both source and columns parameters must be specified by
component catalog/ViewCatalog/catalogTable.tableElement.tableView
  at 
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:199)
  at 
org.apache.tapestry.contrib.table.components.TablePages.setCurrentPage(TablePages.java:192)
  at 
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:184)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Jamie

In this error, m_objTableModel is null in TableView.




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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
I've already done it, so I'll go ahead and post the patch to the Wiki.

Jamie
----- Original Message ----- 
From: "Paul Ferraro" <pm...@columbia.edu>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 2:05 PM
Subject: Re: Table paging broken with Friendly URLs


> You can't.  Both the DataSqueezer and AdaptorRegistry reject duplicate 
> registrations.  You'd have to modify the ComponentAddressAdaptor itself.
> I'll post the patch to the FriendlyURL wiki page today.
> Thanks for the help MB...
>
> Paul
>
> Jamie Orchard-Hays wrote:
>
>> What is the proper way to register a non-default Adaptor? I see how it's 
>> done from Engine and DataSqueezer, but it's not clear to me the proper 
>> way to override the default behavior.
>>
>> Thanks,
>>
>> Jamie
>>
>>
>> ----- Original Message ----- From: "Jamie Orchard-Hays" <ja...@dang.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 11:55 AM
>> Subject: Re: Table paging broken with Friendly URLs
>>
>>
>>> TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
>>> info. I'll see what I can do with ComponentAddressAdaptor.
>>>
>>> Jamie
>>>
>>>
>>> ----- Original Message ----- From: "Mind Bridge" 
>>> <mi...@yahoo.com>
>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>> Sent: Thursday, December 16, 2004 11:18 AM
>>> Subject: RE: Table paging broken with Friendly URLs
>>>
>>>
>>>> Hi,
>>>>
>>>> The problem occurs in 
>>>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>>>> It serializes a ComponentAddress to a string and back. It assumes that 
>>>> the
>>>> page ID does not contain a '/' and it uses that character as a 
>>>> separator.
>>>> Since the given page name contains a '/', however, the ComponentAddress 
>>>> is
>>>> not serialized and deserialized properly. TablePages uses 
>>>> ComponentAddress
>>>> in a Direct I believe, and hence that causes the problem described. A 
>>>> simple
>>>> resolution is just to change ComponentAddressAdaptor to work in a 
>>>> different
>>>> way.
>>>>
>>>> I should point out that as far as I remember there were other places in 
>>>> the
>>>> code that assumed that the page ID does not contain a '/' as well, 
>>>> although
>>>> I do not remember what they are at the moment. In general, that was 
>>>> assumed
>>>> to be an invariant. I am not sure whether the presence of / would not 
>>>> cause
>>>> other problems as a result, although I presume the main ones have 
>>>> already
>>>> been addressed in the patch.
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>>>> Sent: Wednesday, December 15, 2004 6:54 PM
>>>> To: Tapestry users; Michael Chen
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>> That's the difference and therein lies the problem, which I still 
>>>> haven't
>>>> figured out a solution to.
>>>>
>>>> Jamie
>>>> ----- Original Message -----
>>>> From: "Michael Chen" <me...@gmail.com>
>>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>>> Sent: Wednesday, December 15, 2004 4:44 AM
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>>>> Users.
>>>>>
>>>>>
>>>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>>>> <li...@raibledesigns.com>
>>>>> wrote:
>>>>>
>>>>>> Works fine for me with a patched version of 3.0.
>>>>>>
>>>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>>>
>>>>>> Use mraible/tomcat to login.
>>>>>>
>>>>>> Matt
>>>>>>
>>>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>>>
>>>>>> > The paging mechanism has broken while using Friendly URLs. Has
>>>>>> anyone
>>>>>> > else encountered this? Or is anyone using these together without
>>>>>> > errors?
>>>>>> >
>>>>>> > Here's what I get when I click on either the paging arrow or a page
>>>>>> > number (catalog is a subdir that holds my actual page):
>>>>>> >
>>>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>>>> > found in application namespace.
>>>>>> >
>>>>>> > Stack Trace:
>>>>>> >  a..
>>>>>> >
>>>>>> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>>>>> > ificationResolver.java:120)
>>>>>> >  b..
>>>>>> >
>>>>>> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>>>> >  c..
>>>>>> >
>>>>>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>>>>> >  d..
>>>>>> >
>>>>>> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>>>>> > s.java:91)
>>>>>> >  e..
>>>>>> >
>>>>>> org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>>>>> > ePages.java:183)
>>>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> >  g..
>>>>>> >
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>>> > va:39)
>>>>>> >  h..
>>>>>> >
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>>> > rImpl.java:25)
>>>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>>>> >  j..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>>>>> > .java:257)
>>>>>> >  k..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>>>> > 46)
>>>>>> >  l..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>>>>> > nerMap.java:97)
>>>>>> >  m..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>>>>> > red(ListenerMap.java:102)
>>>>>> >  n..
>>>>>> org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>>>> >  o..
>>>>>> >
>>>>>> org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>>>> > 169)
>>>>>> >  p..
>>>>>> >
>>>>>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>>>>> > 872)
>>>>>> >  q..
>>>>>> >
>>>>>> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>>>>> > a:197)
>>>>>> >  r..
>>>>>> >
>>>>>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>>>> > 158)
>>>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>>>> >  v..
>>>>>> >
>>>>>> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>>>>> > r.java:70)
>>>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>>>> >  z.. >
>>>>>> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>>>> >  aa..
>>>>>> >
>>>>>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>>>> > 249)
>>>>>> >  ab..
>>>>>> >
>>>>>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>>>> > 527)
>>>>>> >  ac.. >
>>>>>> jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>>>> >  ad..
>>>>>> >
>>>>>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>>>>> > a:457)
>>>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail:
>>>>>> tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> > For additional commands, e-mail: >
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: 
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>> ---
>>>>
>>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
Thanks much for the help MB, Paul and others. Glad it was simple in the end. 
I've gone ahead and updated the wiki page for Friendly URLs with the change.

Jamie

----- Original Message ----- 
From: "Paul Ferraro" <pm...@columbia.edu>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 2:05 PM
Subject: Re: Table paging broken with Friendly URLs


> You can't.  Both the DataSqueezer and AdaptorRegistry reject duplicate 
> registrations.  You'd have to modify the ComponentAddressAdaptor itself.
> I'll post the patch to the FriendlyURL wiki page today.
> Thanks for the help MB...
>
> Paul
>
> Jamie Orchard-Hays wrote:
>
>> What is the proper way to register a non-default Adaptor? I see how it's 
>> done from Engine and DataSqueezer, but it's not clear to me the proper 
>> way to override the default behavior.
>>
>> Thanks,
>>
>> Jamie
>>
>>
>> ----- Original Message ----- From: "Jamie Orchard-Hays" <ja...@dang.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 11:55 AM
>> Subject: Re: Table paging broken with Friendly URLs
>>
>>
>>> TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
>>> info. I'll see what I can do with ComponentAddressAdaptor.
>>>
>>> Jamie
>>>
>>>
>>> ----- Original Message ----- From: "Mind Bridge" 
>>> <mi...@yahoo.com>
>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>> Sent: Thursday, December 16, 2004 11:18 AM
>>> Subject: RE: Table paging broken with Friendly URLs
>>>
>>>
>>>> Hi,
>>>>
>>>> The problem occurs in 
>>>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>>>> It serializes a ComponentAddress to a string and back. It assumes that 
>>>> the
>>>> page ID does not contain a '/' and it uses that character as a 
>>>> separator.
>>>> Since the given page name contains a '/', however, the ComponentAddress 
>>>> is
>>>> not serialized and deserialized properly. TablePages uses 
>>>> ComponentAddress
>>>> in a Direct I believe, and hence that causes the problem described. A 
>>>> simple
>>>> resolution is just to change ComponentAddressAdaptor to work in a 
>>>> different
>>>> way.
>>>>
>>>> I should point out that as far as I remember there were other places in 
>>>> the
>>>> code that assumed that the page ID does not contain a '/' as well, 
>>>> although
>>>> I do not remember what they are at the moment. In general, that was 
>>>> assumed
>>>> to be an invariant. I am not sure whether the presence of / would not 
>>>> cause
>>>> other problems as a result, although I presume the main ones have 
>>>> already
>>>> been addressed in the patch.
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>>>> Sent: Wednesday, December 15, 2004 6:54 PM
>>>> To: Tapestry users; Michael Chen
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>> That's the difference and therein lies the problem, which I still 
>>>> haven't
>>>> figured out a solution to.
>>>>
>>>> Jamie
>>>> ----- Original Message -----
>>>> From: "Michael Chen" <me...@gmail.com>
>>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>>> Sent: Wednesday, December 15, 2004 4:44 AM
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>>>> Users.
>>>>>
>>>>>
>>>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>>>> <li...@raibledesigns.com>
>>>>> wrote:
>>>>>
>>>>>> Works fine for me with a patched version of 3.0.
>>>>>>
>>>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>>>
>>>>>> Use mraible/tomcat to login.
>>>>>>
>>>>>> Matt
>>>>>>
>>>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>>>
>>>>>> > The paging mechanism has broken while using Friendly URLs. Has
>>>>>> anyone
>>>>>> > else encountered this? Or is anyone using these together without
>>>>>> > errors?
>>>>>> >
>>>>>> > Here's what I get when I click on either the paging arrow or a page
>>>>>> > number (catalog is a subdir that holds my actual page):
>>>>>> >
>>>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>>>> > found in application namespace.
>>>>>> >
>>>>>> > Stack Trace:
>>>>>> >  a..
>>>>>> >
>>>>>> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>>>>> > ificationResolver.java:120)
>>>>>> >  b..
>>>>>> >
>>>>>> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>>>> >  c..
>>>>>> >
>>>>>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>>>>> >  d..
>>>>>> >
>>>>>> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>>>>> > s.java:91)
>>>>>> >  e..
>>>>>> >
>>>>>> org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>>>>> > ePages.java:183)
>>>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> >  g..
>>>>>> >
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>>> > va:39)
>>>>>> >  h..
>>>>>> >
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>>> > rImpl.java:25)
>>>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>>>> >  j..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>>>>> > .java:257)
>>>>>> >  k..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>>>> > 46)
>>>>>> >  l..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>>>>> > nerMap.java:97)
>>>>>> >  m..
>>>>>> >
>>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>>>>> > red(ListenerMap.java:102)
>>>>>> >  n..
>>>>>> org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>>>> >  o..
>>>>>> >
>>>>>> org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>>>> > 169)
>>>>>> >  p..
>>>>>> >
>>>>>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>>>>> > 872)
>>>>>> >  q..
>>>>>> >
>>>>>> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>>>>> > a:197)
>>>>>> >  r..
>>>>>> >
>>>>>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>>>> > 158)
>>>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>>>> >  v..
>>>>>> >
>>>>>> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>>>>> > r.java:70)
>>>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>>>> >  z.. >
>>>>>> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>>>> >  aa..
>>>>>> >
>>>>>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>>>> > 249)
>>>>>> >  ab..
>>>>>> >
>>>>>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>>>> > 527)
>>>>>> >  ac.. >
>>>>>> jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>>>> >  ad..
>>>>>> >
>>>>>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>>>>> > a:457)
>>>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail:
>>>>>> tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> > For additional commands, e-mail: >
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: 
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>> ---
>>>>
>>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Paul Ferraro <pm...@columbia.edu>.
You can't.  Both the DataSqueezer and AdaptorRegistry reject duplicate 
registrations.  You'd have to modify the ComponentAddressAdaptor itself.
I'll post the patch to the FriendlyURL wiki page today.
Thanks for the help MB...

Paul

Jamie Orchard-Hays wrote:

> What is the proper way to register a non-default Adaptor? I see how 
> it's done from Engine and DataSqueezer, but it's not clear to me the 
> proper way to override the default behavior.
>
> Thanks,
>
> Jamie
>
>
> ----- Original Message ----- From: "Jamie Orchard-Hays" <ja...@dang.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Thursday, December 16, 2004 11:55 AM
> Subject: Re: Table paging broken with Friendly URLs
>
>
>> TablePages sure does use a ComponentAddress in a Direct. Thanks for 
>> the info. I'll see what I can do with ComponentAddressAdaptor.
>>
>> Jamie
>>
>>
>> ----- Original Message ----- From: "Mind Bridge" 
>> <mi...@yahoo.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 11:18 AM
>> Subject: RE: Table paging broken with Friendly URLs
>>
>>
>>> Hi,
>>>
>>> The problem occurs in 
>>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>>> It serializes a ComponentAddress to a string and back. It assumes 
>>> that the
>>> page ID does not contain a '/' and it uses that character as a 
>>> separator.
>>> Since the given page name contains a '/', however, the 
>>> ComponentAddress is
>>> not serialized and deserialized properly. TablePages uses 
>>> ComponentAddress
>>> in a Direct I believe, and hence that causes the problem described. 
>>> A simple
>>> resolution is just to change ComponentAddressAdaptor to work in a 
>>> different
>>> way.
>>>
>>> I should point out that as far as I remember there were other places 
>>> in the
>>> code that assumed that the page ID does not contain a '/' as well, 
>>> although
>>> I do not remember what they are at the moment. In general, that was 
>>> assumed
>>> to be an invariant. I am not sure whether the presence of / would 
>>> not cause
>>> other problems as a result, although I presume the main ones have 
>>> already
>>> been addressed in the patch.
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>>> Sent: Wednesday, December 15, 2004 6:54 PM
>>> To: Tapestry users; Michael Chen
>>> Subject: Re: Table paging broken with Friendly URLs
>>>
>>>
>>> That's the difference and therein lies the problem, which I still 
>>> haven't
>>> figured out a solution to.
>>>
>>> Jamie
>>> ----- Original Message -----
>>> From: "Michael Chen" <me...@gmail.com>
>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>> Sent: Wednesday, December 15, 2004 4:44 AM
>>> Subject: Re: Table paging broken with Friendly URLs
>>>
>>>
>>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>>> Users.
>>>>
>>>>
>>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>>> <li...@raibledesigns.com>
>>>> wrote:
>>>>
>>>>> Works fine for me with a patched version of 3.0.
>>>>>
>>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>>
>>>>> Use mraible/tomcat to login.
>>>>>
>>>>> Matt
>>>>>
>>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>>
>>>>> > The paging mechanism has broken while using Friendly URLs. Has 
>>>>> anyone
>>>>> > else encountered this? Or is anyone using these together without
>>>>> > errors?
>>>>> >
>>>>> > Here's what I get when I click on either the paging arrow or a page
>>>>> > number (catalog is a subdir that holds my actual page):
>>>>> >
>>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>>> > found in application namespace.
>>>>> >
>>>>> > Stack Trace:
>>>>> >  a..
>>>>> > 
>>>>> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec 
>>>>>
>>>>> > ificationResolver.java:120)
>>>>> >  b..
>>>>> > 
>>>>> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>>> >  c..
>>>>> > 
>>>>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195) 
>>>>>
>>>>> >  d..
>>>>> > 
>>>>> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres 
>>>>>
>>>>> > s.java:91)
>>>>> >  e..
>>>>> > 
>>>>> org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl 
>>>>>
>>>>> > ePages.java:183)
>>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> >  g..
>>>>> > 
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
>>>>>
>>>>> > va:39)
>>>>> >  h..
>>>>> > 
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
>>>>>
>>>>> > rImpl.java:25)
>>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>>> >  j..
>>>>> > 
>>>>> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap 
>>>>>
>>>>> > .java:257)
>>>>> >  k..
>>>>> > 
>>>>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>>> > 46)
>>>>> >  l..
>>>>> > 
>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste 
>>>>>
>>>>> > nerMap.java:97)
>>>>> >  m..
>>>>> > 
>>>>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge 
>>>>>
>>>>> > red(ListenerMap.java:102)
>>>>> >  n.. 
>>>>> org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>>> >  o..
>>>>> > 
>>>>> org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>>> > 169)
>>>>> >  p..
>>>>> > 
>>>>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java: 
>>>>>
>>>>> > 872)
>>>>> >  q..
>>>>> > 
>>>>> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav 
>>>>>
>>>>> > a:197)
>>>>> >  r..
>>>>> > 
>>>>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>>> > 158)
>>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>>> >  v..
>>>>> > 
>>>>> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte 
>>>>>
>>>>> > r.java:70)
>>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>>> >  z.. > 
>>>>> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>>> >  aa..
>>>>> > 
>>>>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>>> > 249)
>>>>> >  ab..
>>>>> > 
>>>>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>>> > 527)
>>>>> >  ac.. > 
>>>>> jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>>> >  ad..
>>>>> > 
>>>>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav 
>>>>>
>>>>> > a:457)
>>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>>> >
>>>>> >
>>>>> > 
>>>>> ---------------------------------------------------------------------
>>>>> > To unsubscribe, e-mail: 
>>>>> tapestry-user-unsubscribe@jakarta.apache.org
>>>>> > For additional commands, e-mail: > 
>>>>> tapestry-user-help@jakarta.apache.org
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: 
>>>>> tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>> ---
>>>
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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


Re: SOLUTION? Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
Ignore this. For some reason some of my posts have been taking hours to make 
it through to the list. This was the solution and I've already updated the 
Wiki.


----- Original Message ----- 
From: "Jamie Orchard-Hays" <ja...@dang.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 1:03 PM
Subject: SOLUTION? Re: Table paging broken with Friendly URLs


> Changing the following in ComponentAddressAdaptor has worked. The other 
> error I'd had after changing the value in the debugger was because I'd not 
> made my model persistent.
>
> //int separator = string.indexOf(SEPARATOR);
>        //FriendlyURL patch
>        int separator = string.lastIndexOf(SEPARATOR);
>
> Is there an extension point to override the default behavior in the 
> DataSqueezer registry? From looking at the code, I see that trying to 
> register an adaptor with an already-registered prefix will throw an error.
>
> Jamie
>
> ----- Original Message ----- 
> From: "Jamie Orchard-Hays" <ja...@dang.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Thursday, December 16, 2004 12:26 PM
> Subject: Re: Table paging broken with Friendly URLs
>
>
>> What is the proper way to register a non-default Adaptor? I see how it's 
>> done from Engine and DataSqueezer, but it's not clear to me the proper 
>> way to override the default behavior.
>>
>> Thanks,
>>
>> Jamie
>>
>>
>> ----- Original Message ----- 
>> From: "Jamie Orchard-Hays" <ja...@dang.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 11:55 AM
>> Subject: Re: Table paging broken with Friendly URLs
>>
>>
>>> TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
>>> info. I'll see what I can do with ComponentAddressAdaptor.
>>>
>>> Jamie
>>>
>>>
>>> ----- Original Message ----- 
>>> From: "Mind Bridge" <mi...@yahoo.com>
>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>> Sent: Thursday, December 16, 2004 11:18 AM
>>> Subject: RE: Table paging broken with Friendly URLs
>>>
>>>
>>>> Hi,
>>>>
>>>> The problem occurs in 
>>>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>>>> It serializes a ComponentAddress to a string and back. It assumes that 
>>>> the
>>>> page ID does not contain a '/' and it uses that character as a 
>>>> separator.
>>>> Since the given page name contains a '/', however, the ComponentAddress 
>>>> is
>>>> not serialized and deserialized properly. TablePages uses 
>>>> ComponentAddress
>>>> in a Direct I believe, and hence that causes the problem described. A 
>>>> simple
>>>> resolution is just to change ComponentAddressAdaptor to work in a 
>>>> different
>>>> way.
>>>>
>>>> I should point out that as far as I remember there were other places in 
>>>> the
>>>> code that assumed that the page ID does not contain a '/' as well, 
>>>> although
>>>> I do not remember what they are at the moment. In general, that was 
>>>> assumed
>>>> to be an invariant. I am not sure whether the presence of / would not 
>>>> cause
>>>> other problems as a result, although I presume the main ones have 
>>>> already
>>>> been addressed in the patch.
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>>>> Sent: Wednesday, December 15, 2004 6:54 PM
>>>> To: Tapestry users; Michael Chen
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>> That's the difference and therein lies the problem, which I still 
>>>> haven't
>>>> figured out a solution to.
>>>>
>>>> Jamie
>>>> ----- Original Message -----
>>>> From: "Michael Chen" <me...@gmail.com>
>>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>>> Sent: Wednesday, December 15, 2004 4:44 AM
>>>> Subject: Re: Table paging broken with Friendly URLs
>>>>
>>>>
>>>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>>>> Users.
>>>>>
>>>>>
>>>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>>>> <li...@raibledesigns.com>
>>>>> wrote:
>>>>>> Works fine for me with a patched version of 3.0.
>>>>>>
>>>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>>>
>>>>>> Use mraible/tomcat to login.
>>>>>>
>>>>>> Matt
>>>>>>
>>>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>>>
>>>>>> > The paging mechanism has broken while using Friendly URLs. Has 
>>>>>> > anyone
>>>>>> > else encountered this? Or is anyone using these together without
>>>>>> > errors?
>>>>>> >
>>>>>> > Here's what I get when I click on either the paging arrow or a page
>>>>>> > number (catalog is a subdir that holds my actual page):
>>>>>> >
>>>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>>>> > found in application namespace.
>>>>>> >
>>>>>> > Stack Trace:
>>>>>> >  a..
>>>>>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>>>>> > ificationResolver.java:120)
>>>>>> >  b..
>>>>>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>>>> >  c..
>>>>>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>>>>> >  d..
>>>>>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>>>>> > s.java:91)
>>>>>> >  e..
>>>>>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>>>>> > ePages.java:183)
>>>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> >  g..
>>>>>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>>> > va:39)
>>>>>> >  h..
>>>>>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>>> > rImpl.java:25)
>>>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>>>> >  j..
>>>>>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>>>>> > .java:257)
>>>>>> >  k..
>>>>>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>>>> > 46)
>>>>>> >  l..
>>>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>>>>> > nerMap.java:97)
>>>>>> >  m..
>>>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>>>>> > red(ListenerMap.java:102)
>>>>>> >  n.. 
>>>>>> > org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>>>> >  o..
>>>>>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>>>> > 169)
>>>>>> >  p..
>>>>>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>>>>> > 872)
>>>>>> >  q..
>>>>>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>>>>> > a:197)
>>>>>> >  r..
>>>>>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>>>> > 158)
>>>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>>>> >  v..
>>>>>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>>>>> > r.java:70)
>>>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>>>> >  z.. 
>>>>>> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>>>> >  aa..
>>>>>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>>>> > 249)
>>>>>> >  ab..
>>>>>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>>>> > 527)
>>>>>> >  ac.. 
>>>>>> > jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>>>> >  ad..
>>>>>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>>>>> > a:457)
>>>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail: 
>>>>>> > tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> > For additional commands, e-mail: 
>>>>>> > tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: 
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>> ---
>>>>
>>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


SOLUTION? Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
Changing the following in ComponentAddressAdaptor has worked. The other 
error I'd had after changing the value in the debugger was because I'd not 
made my model persistent.

//int separator = string.indexOf(SEPARATOR);
        //FriendlyURL patch
        int separator = string.lastIndexOf(SEPARATOR);

Is there an extension point to override the default behavior in the 
DataSqueezer registry? From looking at the code, I see that trying to 
register an adaptor with an already-registered prefix will throw an error.

Jamie

----- Original Message ----- 
From: "Jamie Orchard-Hays" <ja...@dang.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 12:26 PM
Subject: Re: Table paging broken with Friendly URLs


> What is the proper way to register a non-default Adaptor? I see how it's 
> done from Engine and DataSqueezer, but it's not clear to me the proper way 
> to override the default behavior.
>
> Thanks,
>
> Jamie
>
>
> ----- Original Message ----- 
> From: "Jamie Orchard-Hays" <ja...@dang.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Thursday, December 16, 2004 11:55 AM
> Subject: Re: Table paging broken with Friendly URLs
>
>
>> TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
>> info. I'll see what I can do with ComponentAddressAdaptor.
>>
>> Jamie
>>
>>
>> ----- Original Message ----- 
>> From: "Mind Bridge" <mi...@yahoo.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Thursday, December 16, 2004 11:18 AM
>> Subject: RE: Table paging broken with Friendly URLs
>>
>>
>>> Hi,
>>>
>>> The problem occurs in 
>>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>>> It serializes a ComponentAddress to a string and back. It assumes that 
>>> the
>>> page ID does not contain a '/' and it uses that character as a 
>>> separator.
>>> Since the given page name contains a '/', however, the ComponentAddress 
>>> is
>>> not serialized and deserialized properly. TablePages uses 
>>> ComponentAddress
>>> in a Direct I believe, and hence that causes the problem described. A 
>>> simple
>>> resolution is just to change ComponentAddressAdaptor to work in a 
>>> different
>>> way.
>>>
>>> I should point out that as far as I remember there were other places in 
>>> the
>>> code that assumed that the page ID does not contain a '/' as well, 
>>> although
>>> I do not remember what they are at the moment. In general, that was 
>>> assumed
>>> to be an invariant. I am not sure whether the presence of / would not 
>>> cause
>>> other problems as a result, although I presume the main ones have 
>>> already
>>> been addressed in the patch.
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>>> Sent: Wednesday, December 15, 2004 6:54 PM
>>> To: Tapestry users; Michael Chen
>>> Subject: Re: Table paging broken with Friendly URLs
>>>
>>>
>>> That's the difference and therein lies the problem, which I still 
>>> haven't
>>> figured out a solution to.
>>>
>>> Jamie
>>> ----- Original Message -----
>>> From: "Michael Chen" <me...@gmail.com>
>>> To: "Tapestry users" <ta...@jakarta.apache.org>
>>> Sent: Wednesday, December 15, 2004 4:44 AM
>>> Subject: Re: Table paging broken with Friendly URLs
>>>
>>>
>>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>>> Users.
>>>>
>>>>
>>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>>> <li...@raibledesigns.com>
>>>> wrote:
>>>>> Works fine for me with a patched version of 3.0.
>>>>>
>>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>>
>>>>> Use mraible/tomcat to login.
>>>>>
>>>>> Matt
>>>>>
>>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>>
>>>>> > The paging mechanism has broken while using Friendly URLs. Has 
>>>>> > anyone
>>>>> > else encountered this? Or is anyone using these together without
>>>>> > errors?
>>>>> >
>>>>> > Here's what I get when I click on either the paging arrow or a page
>>>>> > number (catalog is a subdir that holds my actual page):
>>>>> >
>>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>>> > found in application namespace.
>>>>> >
>>>>> > Stack Trace:
>>>>> >  a..
>>>>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>>>> > ificationResolver.java:120)
>>>>> >  b..
>>>>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>>> >  c..
>>>>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>>>> >  d..
>>>>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>>>> > s.java:91)
>>>>> >  e..
>>>>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>>>> > ePages.java:183)
>>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> >  g..
>>>>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>> > va:39)
>>>>> >  h..
>>>>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>> > rImpl.java:25)
>>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>>> >  j..
>>>>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>>>> > .java:257)
>>>>> >  k..
>>>>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>>> > 46)
>>>>> >  l..
>>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>>>> > nerMap.java:97)
>>>>> >  m..
>>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>>>> > red(ListenerMap.java:102)
>>>>> >  n.. 
>>>>> > org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>>> >  o..
>>>>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>>> > 169)
>>>>> >  p..
>>>>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>>>> > 872)
>>>>> >  q..
>>>>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>>>> > a:197)
>>>>> >  r..
>>>>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>>> > 158)
>>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>>> >  v..
>>>>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>>>> > r.java:70)
>>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>>> >  z.. 
>>>>> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>>> >  aa..
>>>>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>>> > 249)
>>>>> >  ab..
>>>>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>>> > 527)
>>>>> >  ac.. 
>>>>> > jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>>> >  ad..
>>>>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>>>> > a:457)
>>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>>> >
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> > For additional commands, e-mail: 
>>>>> > tapestry-user-help@jakarta.apache.org
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>> ---
>>>
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
What is the proper way to register a non-default Adaptor? I see how it's 
done from Engine and DataSqueezer, but it's not clear to me the proper way 
to override the default behavior.

Thanks,

Jamie


----- Original Message ----- 
From: "Jamie Orchard-Hays" <ja...@dang.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 11:55 AM
Subject: Re: Table paging broken with Friendly URLs


> TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
> info. I'll see what I can do with ComponentAddressAdaptor.
>
> Jamie
>
>
> ----- Original Message ----- 
> From: "Mind Bridge" <mi...@yahoo.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Thursday, December 16, 2004 11:18 AM
> Subject: RE: Table paging broken with Friendly URLs
>
>
>> Hi,
>>
>> The problem occurs in 
>> org.apache.tapestry.util.io.ComponentAddressAdaptor.
>> It serializes a ComponentAddress to a string and back. It assumes that 
>> the
>> page ID does not contain a '/' and it uses that character as a separator.
>> Since the given page name contains a '/', however, the ComponentAddress 
>> is
>> not serialized and deserialized properly. TablePages uses 
>> ComponentAddress
>> in a Direct I believe, and hence that causes the problem described. A 
>> simple
>> resolution is just to change ComponentAddressAdaptor to work in a 
>> different
>> way.
>>
>> I should point out that as far as I remember there were other places in 
>> the
>> code that assumed that the page ID does not contain a '/' as well, 
>> although
>> I do not remember what they are at the moment. In general, that was 
>> assumed
>> to be an invariant. I am not sure whether the presence of / would not 
>> cause
>> other problems as a result, although I presume the main ones have already
>> been addressed in the patch.
>>
>>
>>
>> -----Original Message-----
>> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
>> Sent: Wednesday, December 15, 2004 6:54 PM
>> To: Tapestry users; Michael Chen
>> Subject: Re: Table paging broken with Friendly URLs
>>
>>
>> That's the difference and therein lies the problem, which I still haven't
>> figured out a solution to.
>>
>> Jamie
>> ----- Original Message -----
>> From: "Michael Chen" <me...@gmail.com>
>> To: "Tapestry users" <ta...@jakarta.apache.org>
>> Sent: Wednesday, December 15, 2004 4:44 AM
>> Subject: Re: Table paging broken with Friendly URLs
>>
>>
>>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>>> Users.
>>>
>>>
>>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible 
>>> <li...@raibledesigns.com>
>>> wrote:
>>>> Works fine for me with a patched version of 3.0.
>>>>
>>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>>
>>>> Use mraible/tomcat to login.
>>>>
>>>> Matt
>>>>
>>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>>
>>>> > The paging mechanism has broken while using Friendly URLs. Has anyone
>>>> > else encountered this? Or is anyone using these together without
>>>> > errors?
>>>> >
>>>> > Here's what I get when I click on either the paging arrow or a page
>>>> > number (catalog is a subdir that holds my actual page):
>>>> >
>>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>>> > found in application namespace.
>>>> >
>>>> > Stack Trace:
>>>> >  a..
>>>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>>> > ificationResolver.java:120)
>>>> >  b..
>>>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>>> >  c..
>>>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>>> >  d..
>>>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>>> > s.java:91)
>>>> >  e..
>>>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>>> > ePages.java:183)
>>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> >  g..
>>>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>> > va:39)
>>>> >  h..
>>>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>> > rImpl.java:25)
>>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>>> >  j..
>>>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>>> > .java:257)
>>>> >  k..
>>>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>>> > 46)
>>>> >  l..
>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>>> > nerMap.java:97)
>>>> >  m..
>>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>>> > red(ListenerMap.java:102)
>>>> >  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>>> >  o..
>>>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>>> > 169)
>>>> >  p..
>>>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>>> > 872)
>>>> >  q..
>>>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>>> > a:197)
>>>> >  r..
>>>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>>> > 158)
>>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>>> >  v..
>>>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>>> > r.java:70)
>>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>>> >  z.. 
>>>> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>>> >  aa..
>>>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>>> > 249)
>>>> >  ab..
>>>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>>> > 527)
>>>> >  ac.. 
>>>> > jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>>> >  ad..
>>>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>>> > a:457)
>>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>>> >
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> > For additional commands, e-mail: 
>>>> > tapestry-user-help@jakarta.apache.org
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>> ---
>>
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
TablePages sure does use a ComponentAddress in a Direct. Thanks for the 
info. I'll see what I can do with ComponentAddressAdaptor.

Jamie


----- Original Message ----- 
From: "Mind Bridge" <mi...@yahoo.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, December 16, 2004 11:18 AM
Subject: RE: Table paging broken with Friendly URLs


> Hi,
>
> The problem occurs in org.apache.tapestry.util.io.ComponentAddressAdaptor.
> It serializes a ComponentAddress to a string and back. It assumes that the
> page ID does not contain a '/' and it uses that character as a separator.
> Since the given page name contains a '/', however, the ComponentAddress is
> not serialized and deserialized properly. TablePages uses ComponentAddress
> in a Direct I believe, and hence that causes the problem described. A 
> simple
> resolution is just to change ComponentAddressAdaptor to work in a 
> different
> way.
>
> I should point out that as far as I remember there were other places in 
> the
> code that assumed that the page ID does not contain a '/' as well, 
> although
> I do not remember what they are at the moment. In general, that was 
> assumed
> to be an invariant. I am not sure whether the presence of / would not 
> cause
> other problems as a result, although I presume the main ones have already
> been addressed in the patch.
>
>
>
> -----Original Message-----
> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
> Sent: Wednesday, December 15, 2004 6:54 PM
> To: Tapestry users; Michael Chen
> Subject: Re: Table paging broken with Friendly URLs
>
>
> That's the difference and therein lies the problem, which I still haven't
> figured out a solution to.
>
> Jamie
> ----- Original Message -----
> From: "Michael Chen" <me...@gmail.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Wednesday, December 15, 2004 4:44 AM
> Subject: Re: Table paging broken with Friendly URLs
>
>
>> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
>> was "catalog/ViewCatalog"(note the slash), while your sample was only
>> Users.
>>
>>
>> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible <li...@raibledesigns.com>
>> wrote:
>>> Works fine for me with a patched version of 3.0.
>>>
>>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>>
>>> Use mraible/tomcat to login.
>>>
>>> Matt
>>>
>>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>>
>>> > The paging mechanism has broken while using Friendly URLs. Has anyone
>>> > else encountered this? Or is anyone using these together without
>>> > errors?
>>> >
>>> > Here's what I get when I click on either the paging arrow or a page
>>> > number (catalog is a subdir that holds my actual page):
>>> >
>>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>>> > found in application namespace.
>>> >
>>> > Stack Trace:
>>> >  a..
>>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>>> > ificationResolver.java:120)
>>> >  b..
>>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>> >  c..
>>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>> >  d..
>>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>>> > s.java:91)
>>> >  e..
>>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>>> > ePages.java:183)
>>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >  g..
>>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>> > va:39)
>>> >  h..
>>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>> > rImpl.java:25)
>>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>> >  j..
>>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>>> > .java:257)
>>> >  k..
>>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>>> > 46)
>>> >  l..
>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>>> > nerMap.java:97)
>>> >  m..
>>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>>> > red(ListenerMap.java:102)
>>> >  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>> >  o..
>>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>>> > 169)
>>> >  p..
>>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>>> > 872)
>>> >  q..
>>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>>> > a:197)
>>> >  r..
>>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>>> > 158)
>>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>> >  v..
>>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>>> > r.java:70)
>>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>> >  z.. 
>>> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>> >  aa..
>>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>>> > 249)
>>> >  ab..
>>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>>> > 527)
>>> >  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>> >  ad..
>>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>>> > a:457)
>>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
> ---
>
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


RE: Table paging broken with Friendly URLs

Posted by Mind Bridge <mi...@yahoo.com>.
Hi,

The problem occurs in org.apache.tapestry.util.io.ComponentAddressAdaptor.
It serializes a ComponentAddress to a string and back. It assumes that the
page ID does not contain a '/' and it uses that character as a separator.
Since the given page name contains a '/', however, the ComponentAddress is
not serialized and deserialized properly. TablePages uses ComponentAddress
in a Direct I believe, and hence that causes the problem described. A simple
resolution is just to change ComponentAddressAdaptor to work in a different
way.

I should point out that as far as I remember there were other places in the
code that assumed that the page ID does not contain a '/' as well, although
I do not remember what they are at the moment. In general, that was assumed
to be an invariant. I am not sure whether the presence of / would not cause
other problems as a result, although I presume the main ones have already
been addressed in the patch.



-----Original Message-----
From: Jamie Orchard-Hays [mailto:jamie@dang.com]
Sent: Wednesday, December 15, 2004 6:54 PM
To: Tapestry users; Michael Chen
Subject: Re: Table paging broken with Friendly URLs


That's the difference and therein lies the problem, which I still haven't
figured out a solution to.

Jamie
----- Original Message -----
From: "Michael Chen" <me...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, December 15, 2004 4:44 AM
Subject: Re: Table paging broken with Friendly URLs


> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
> was "catalog/ViewCatalog"(note the slash), while your sample was only
> Users.
>
>
> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible <li...@raibledesigns.com>
> wrote:
>> Works fine for me with a patched version of 3.0.
>>
>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>
>> Use mraible/tomcat to login.
>>
>> Matt
>>
>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>
>> > The paging mechanism has broken while using Friendly URLs. Has anyone
>> > else encountered this? Or is anyone using these together without
>> > errors?
>> >
>> > Here's what I get when I click on either the paging arrow or a page
>> > number (catalog is a subdir that holds my actual page):
>> >
>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>> > found in application namespace.
>> >
>> > Stack Trace:
>> >  a..
>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>> > ificationResolver.java:120)
>> >  b..
>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>> >  c..
>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>> >  d..
>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>> > s.java:91)
>> >  e..
>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>> > ePages.java:183)
>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >  g..
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>> > va:39)
>> >  h..
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>> > rImpl.java:25)
>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>> >  j..
>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>> > .java:257)
>> >  k..
>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>> > 46)
>> >  l..
>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>> > nerMap.java:97)
>> >  m..
>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>> > red(ListenerMap.java:102)
>> >  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>> >  o..
>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>> > 169)
>> >  p..
>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>> > 872)
>> >  q..
>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>> > a:197)
>> >  r..
>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>> > 158)
>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>> >  v..
>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>> > r.java:70)
>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>> >  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>> >  aa..
>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>> > 249)
>> >  ab..
>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>> > 527)
>> >  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>> >  ad..
>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>> > a:457)
>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004


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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
That's the difference and therein lies the problem, which I still haven't 
figured out a solution to.

Jamie
----- Original Message ----- 
From: "Michael Chen" <me...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, December 15, 2004 4:44 AM
Subject: Re: Table paging broken with Friendly URLs


> Matt, you didn't have the same enviroment as Jamie. Jamie's page name
> was "catalog/ViewCatalog"(note the slash), while your sample was only
> Users.
>
>
> On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible <li...@raibledesigns.com> 
> wrote:
>> Works fine for me with a patched version of 3.0.
>>
>> http://www.mraible.kattare.com/appfuse-tapestry/users.html
>>
>> Use mraible/tomcat to login.
>>
>> Matt
>>
>> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
>>
>> > The paging mechanism has broken while using Friendly URLs. Has anyone
>> > else encountered this? Or is anyone using these together without
>> > errors?
>> >
>> > Here's what I get when I click on either the paging arrow or a page
>> > number (catalog is a subdir that holds my actual page):
>> >
>> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
>> > found in application namespace.
>> >
>> > Stack Trace:
>> >  a..
>> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
>> > ificationResolver.java:120)
>> >  b..
>> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>> >  c..
>> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>> >  d..
>> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
>> > s.java:91)
>> >  e..
>> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
>> > ePages.java:183)
>> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >  g..
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>> > va:39)
>> >  h..
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>> > rImpl.java:25)
>> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
>> >  j..
>> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
>> > .java:257)
>> >  k..
>> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
>> > 46)
>> >  l..
>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
>> > nerMap.java:97)
>> >  m..
>> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
>> > red(ListenerMap.java:102)
>> >  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>> >  o..
>> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
>> > 169)
>> >  p..
>> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
>> > 872)
>> >  q..
>> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
>> > a:197)
>> >  r..
>> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
>> > 158)
>> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>> >  v..
>> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
>> > r.java:70)
>> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>> >  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>> >  aa..
>> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
>> > 249)
>> >  ab..
>> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
>> > 527)
>> >  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>> >  ad..
>> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
>> > a:457)
>> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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


Re: Table paging broken with Friendly URLs

Posted by Michael Chen <me...@gmail.com>.
Matt, you didn't have the same enviroment as Jamie. Jamie's page name
was "catalog/ViewCatalog"(note the slash), while your sample was only
Users.


On Tue, 14 Dec 2004 23:23:31 -0700, Matt Raible <li...@raibledesigns.com> wrote:
> Works fine for me with a patched version of 3.0.
> 
> http://www.mraible.kattare.com/appfuse-tapestry/users.html
> 
> Use mraible/tomcat to login.
> 
> Matt
> 
> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
> 
> > The paging mechanism has broken while using Friendly URLs. Has anyone
> > else encountered this? Or is anyone using these together without
> > errors?
> >
> > Here's what I get when I click on either the paging arrow or a page
> > number (catalog is a subdir that holds my actual page):
> >
> > org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not
> > found in application namespace.
> >
> > Stack Trace:
> >  a..
> > org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec
> > ificationResolver.java:120)
> >  b..
> > org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
> >  c..
> > org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
> >  d..
> > org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres
> > s.java:91)
> >  e..
> > org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl
> > ePages.java:183)
> >  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  g..
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > va:39)
> >  h..
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > rImpl.java:25)
> >  i.. java.lang.reflect.Method.invoke(Method.java:324)
> >  j..
> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap
> > .java:257)
> >  k..
> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:
> > 46)
> >  l..
> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste
> > nerMap.java:97)
> >  m..
> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge
> > red(ListenerMap.java:102)
> >  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
> >  o..
> > org.apache.tapestry.engine.DirectService.service(DirectService.java:
> > 169)
> >  p..
> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
> > 872)
> >  q..
> > org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
> > a:197)
> >  r..
> > org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
> > 158)
> >  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
> >  v..
> > jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte
> > r.java:70)
> >  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
> >  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
> >  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
> >  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
> >  aa..
> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
> > 249)
> >  ab..
> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
> > 527)
> >  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
> >  ad..
> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav
> > a:457)
> >  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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


RESENT + more info : Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
my posts don't seem to be going through. I'm trying again...

I've been tracing through the app with a debugger.

In DirectService.service(), parameters returns the _pageName = "catalog"
rather than "catalog/ViewCatalog" and _idPath =
"ViewCatalog/catalogTable.tableElement.tableView"
(Object[] parameters = getParameters(cycle);)

However, even if I change the value them to "catalog/ViewCatalog" and
"catalogTable.tableElement.tableView" in the debugger and continue the
execution, the page fails, though with a different error:

org.apache.tapestry.ApplicationRuntimeException: Either the tableModel
parameter or both source and columns parameters must be specified by
component catalog/ViewCatalog/catalogTable.tableElement.tableView
  at
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:199)
  at
org.apache.tapestry.contrib.table.components.TablePages.setCurrentPage(TablePages.java:192)
  at
org.apache.tapestry.contrib.table.components.TablePages.changePage(TablePages.java:184)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Jamie

In this error, m_objTableModel is null in TableView.



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


Re: Table paging broken with Friendly URLs

Posted by Jamie Orchard-Hays <ja...@dang.com>.
Your link isn't working, though I was able to login.


----- Original Message ----- 
From: "Matt Raible" <li...@raibledesigns.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, December 15, 2004 1:23 AM
Subject: Re: Table paging broken with Friendly URLs


> Works fine for me with a patched version of 3.0.
> 
> http://www.mraible.kattare.com/appfuse-tapestry/users.html
> 
> Use mraible/tomcat to login.
> 
> Matt
> 
> On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:
> 
>> The paging mechanism has broken while using Friendly URLs. Has anyone  
>> else encountered this? Or is anyone using these together without  
>> errors?
>>
>> Here's what I get when I click on either the paging arrow or a page  
>> number (catalog is a subdir that holds my actual page):
>>
>> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not  
>> found in application namespace.
>>
>> Stack Trace:
>>  a..  
>> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec 
>> ificationResolver.java:120)
>>  b..  
>> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>>  c..  
>> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>>  d..  
>> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres 
>> s.java:91)
>>  e..  
>> org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl 
>> ePages.java:183)
>>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  g..  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
>> va:39)
>>  h..  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
>> rImpl.java:25)
>>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>>  j..  
>> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap 
>> .java:257)
>>  k..  
>> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java: 
>> 46)
>>  l..  
>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste 
>> nerMap.java:97)
>>  m..  
>> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge 
>> red(ListenerMap.java:102)
>>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>>  o..  
>> org.apache.tapestry.engine.DirectService.service(DirectService.java: 
>> 169)
>>  p..  
>> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java: 
>> 872)
>>  q..  
>> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav 
>> a:197)
>>  r..  
>> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java: 
>> 158)
>>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>>  v..  
>> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte 
>> r.java:70)
>>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>>  aa..  
>> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java: 
>> 249)
>>  ab..  
>> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java: 
>> 527)
>>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>>  ad..  
>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav 
>> a:457)
>>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>

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


Re: Table paging broken with Friendly URLs

Posted by Matt Raible <li...@raibledesigns.com>.
Works fine for me with a patched version of 3.0.

http://www.mraible.kattare.com/appfuse-tapestry/users.html

Use mraible/tomcat to login.

Matt

On Dec 13, 2004, at 9:43 AM, Jamie Orchard-Hays wrote:

> The paging mechanism has broken while using Friendly URLs. Has anyone  
> else encountered this? Or is anyone using these together without  
> errors?
>
> Here's what I get when I click on either the paging arrow or a page  
> number (catalog is a subdir that holds my actual page):
>
> org.apache.tapestry.ApplicationRuntimeException Page 'catalog' not  
> found in application namespace.
>
> Stack Trace:
>  a..  
> org.apache.tapestry.resolver.PageSpecificationResolver.resolve(PageSpec 
> ificationResolver.java:120)
>  b..  
> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:144)
>  c..  
> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:195)
>  d..  
> org.apache.tapestry.util.ComponentAddress.findComponent(ComponentAddres 
> s.java:91)
>  e..  
> org.apache.tapestry.contrib.table.components.TablePages.changePage(Tabl 
> ePages.java:183)
>  f.. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  g..  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>  h..  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>  i.. java.lang.reflect.Method.invoke(Method.java:324)
>  j..  
> org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap 
> .java:257)
>  k..  
> org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java: 
> 46)
>  l..  
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Liste 
> nerMap.java:97)
>  m..  
> org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrigge 
> red(ListenerMap.java:102)
>  n.. org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
>  o..  
> org.apache.tapestry.engine.DirectService.service(DirectService.java: 
> 169)
>  p..  
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java: 
> 872)
>  q..  
> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav 
> a:197)
>  r..  
> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java: 
> 158)
>  s.. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  t.. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  u.. jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>  v..  
> jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFilte 
> r.java:70)
>  w.. jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>  x.. jrun.servlet.FilterChain.service(FilterChain.java:101)
>  y.. jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>  z.. jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>  aa..  
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java: 
> 249)
>  ab..  
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java: 
> 527)
>  ac.. jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
>  ad..  
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.jav 
> a:457)
>  ae.. jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


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