404 Pages Exception
Hi! I've followed http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryForCustomErrorPages, and I'm receiving this exception : HTTP Status 500 - -- *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* java.lang.RuntimeException: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:75) $RememberMeServices_121266c86ed.delegate($RememberMeServices_121266c86ed.java) $RememberMeServices_121266c86ed.autoLogin($RememberMeServices_121266c86ed.java) org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:74) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service(HttpServletRequestFilterWrapper.java:52) $HttpServletRequestFilter_121266c870d.service($HttpServletRequestFilter_121266c870d.java) $HttpServletRequestHandler_121266c8714.service($HttpServletRequestHandler_121266c8714.java) nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper$1.doFilter(HttpServletRequestFilterWrapper.java:56) org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:271) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service(HttpServletRequestFilterWrapper.java:52) $HttpServletRequestFilter_121266c870c.service($HttpServletRequestFilter_121266c870c.java) $HttpServletRequestHandler_121266c8714.service($HttpServletRequestHandler_121266c8714.java) nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper$1.doFilter(HttpServletRequestFilterWrapper.java:56) org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service(HttpServletRequestFilterWrapper.java:52) $HttpServletRequestFilter_121266c870b.service($HttpServletRequestFilter_121266c870b.java) $HttpServletRequestHandler_121266c8714.service($HttpServletRequestHandler_121266c8714.java) $HttpServletRequestHandler_121266c870a.service($HttpServletRequestHandler_121266c870a.java) org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) *root cause* java.lang.RuntimeException: Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:87) org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) org.apache.tapestry5.ioc.internal.InvokableToRunnable.run(InvokableToRunnable.java:36) org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:48) org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:89) org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:898) org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29) org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:52) org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:56) org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60) org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invok
Re: 301 moved permanently
Ok, I have looked and and still no idea. Could you give me link to some documentation. On Fri, Apr 17, 2009 at 9:51 AM, Yancey Yeargan wrote: > > Take a look at the "Timing" filter in the default maven archetype. > > Yancey > > > > On Apr 17, 2009, at 8:08 AM, Davor Miku wrote: > > Can you give me some example, please? >> >>
Re: 301 moved permanently
Can you give me some example, please? On Fri, Apr 17, 2009 at 8:32 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > I would do that with a request filter or a dispatcher. It would solve > your problem in a single place. > > -- > Thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
301 moved permanently
Hi guys! I have this old struts site, rewritten in T5. Problem are links (with Google). For example old links are : www.example/content/populateContent.do?contentId=xxx and new are: www.example/content/xxx What I want is to set 301 redirect for old links, redirecting to new one, in same class (content/Index.java) Index.java : public void onActivate(String article) { try{ int id = Integer.parseInt(article); // new urls Content content = contentDAO.getContent(id); } catch(Exception e){ article = article.substring(19); // remove populateContent.do?contentId= int id = Integer.parseInt(article); /* Here should be something like this. You get the picture */ response.setStatus(301); response.setHeader( "Location", "http://www.example.com/content/"; + id); } } How can I do this? Every help is appreciated.
Re: Grid Pagination And onActivate()
I've fixed this. There was no problem with pagination at all, but with relative links, again! On Sun, Mar 29, 2009 at 2:17 PM, Davor Miku wrote: > I've added opPasivate() but still, no difference. > > > Pay attention: > > > So when you go to www.example/archive/news page > > you'll get grid showing articles from news category. > > > > Problem: > > > > When you click on page number, i.e. 4 you'll get : > > > > "There is no data to display." > > > > message, and URL will be www.example/archive > > > > When I go back to www.example/archive/news, 4th page will show. > > > > > > On Sun, Mar 29, 2009 at 3:35 AM, Scott Russell wrote: > >> I think the problem is that you have persisted the category name, but not >> the list of news articles that the grid is using, so when the second page is >> requested, no data is available to display. >> >> Try either >> a) adding @Persist to your list of data items your grid is displaying, or >> b) load the list of data items within onActivate. >> >> Also, if you use onActivate, it is also a good idea to pair it with >> onPassivate, as follows: >> >> public String onPassivate() { >>return currentCategoryName; >> } >> >> If you do that, you could probably even ditch the @Persist tag on the >> currentCategoryName field, as the activation context is passed around in the >> url. >> >> cheers, >> Scott >> >> >> On Sun, 29 Mar 2009 12:57:32 Davor Miku wrote: >> > Hello! >> > >> > I have component witch takes one parameter and based on it >> > shows Grid component. >> > >> > In page Archive, I have : >> > >> > public class Archive >> > { >> > >> > @Persist >> > private String currentCategoryName; >> > >> > public void onActivate(String currentCategoryName) { >> > this.currentCategoryName = currentCategoryName; >> > } >> > } >> > >> > >> > In Archive.tml: >> > >> > >> > >> > >> > So when you go to www.example/archive/news page >> > you'll get grid showing articles from news category. >> > >> > Problem: >> > >> > When you click on page number, i.e. 4 you'll get : >> > >> > "There is no data to display." >> > >> > message, and URL will be www.example/archive >> > >> > When I go back to www.example/archive, 4th page will show. >> > >> > >> > >> > Is there any way to fix this? >> > >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Grid Pagination And onActivate()
I've added opPasivate() but still, no difference. Pay attention: > So when you go to www.example/archive/news page > you'll get grid showing articles from news category. > > Problem: > > When you click on page number, i.e. 4 you'll get : > > "There is no data to display." > > message, and URL will be www.example/archive > > When I go back to www.example/archive/news, 4th page will show. On Sun, Mar 29, 2009 at 3:35 AM, Scott Russell wrote: > I think the problem is that you have persisted the category name, but not > the list of news articles that the grid is using, so when the second page is > requested, no data is available to display. > > Try either > a) adding @Persist to your list of data items your grid is displaying, or > b) load the list of data items within onActivate. > > Also, if you use onActivate, it is also a good idea to pair it with > onPassivate, as follows: > > public String onPassivate() { >return currentCategoryName; > } > > If you do that, you could probably even ditch the @Persist tag on the > currentCategoryName field, as the activation context is passed around in the > url. > > cheers, > Scott > > > On Sun, 29 Mar 2009 12:57:32 Davor Miku wrote: > > Hello! > > > > I have component witch takes one parameter and based on it > > shows Grid component. > > > > In page Archive, I have : > > > > public class Archive > > { > > > > @Persist > > private String currentCategoryName; > > > > public void onActivate(String currentCategoryName) { > > this.currentCategoryName = currentCategoryName; > > } > > } > > > > > > In Archive.tml: > > > > > > > > > > So when you go to www.example/archive/news page > > you'll get grid showing articles from news category. > > > > Problem: > > > > When you click on page number, i.e. 4 you'll get : > > > > "There is no data to display." > > > > message, and URL will be www.example/archive > > > > When I go back to www.example/archive, 4th page will show. > > > > > > > > Is there any way to fix this? > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: onActivate() called twice
First, all images urls in DB are relative, but I'll change this. Second, what if I use some js plugin (i.e. for jQuery) witch uses relative links (like ThickBox, fixed it). Third, if you have any source of forum, blog ,etc it means if some user enter relative link in his post your app is knocked down. Fourth, its seems little strange to ban something like relative links. Anyway, why is this happening? Is Tapestry using ../ for some sort of dispaching between components? On Fri, Mar 27, 2009 at 9:59 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, Mar 26, 2009 at 5:02 PM, Davor Miku wrote: > > I know that, but I can't use it. > > Why not? > > > I there any other way? > > Besides using assets and absolute URLs, I don't know. > > -- > Thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Grid Pagination And onActivate()
Hello! I have component witch takes one parameter and based on it shows Grid component. In page Archive, I have : public class Archive { @Persist private String currentCategoryName; public void onActivate(String currentCategoryName) { this.currentCategoryName = currentCategoryName; } } In Archive.tml: So when you go to www.example/archive/news page you'll get grid showing articles from news category. Problem: When you click on page number, i.e. 4 you'll get : "There is no data to display." message, and URL will be www.example/archive When I go back to www.example/archive, 4th page will show. Is there any way to fix this?
Re: RSS Rome
Thanks!!! On Fri, Mar 27, 2009 at 9:56 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, Mar 27, 2009 at 2:54 AM, Davor Miku wrote: > > Hi! > > Hello! > > > I'm using rome to build rss feed component. > >@BeginRender > >boolean init(MarkupWriter writer){ > > feed.setEntries(entries); > > SyndFeedOutput output = new SyndFeedOutput(); > > writer.writeRaw(output.outputString(feed)); > > The recommended way of doing this (sending content not generated by a > Tapestry template) is returning a StreamResponse in the onActivate() > method or any other event handler method. There's an example here: > http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF. It > deals with binary content, but it also applies to text content. It has > the advantage of setting the right content type in the response. > > -- > Thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: RSS Rome
Thanks in advance. Anyway, there must be some way to build custom XML file, not just for RSS. I'll need to build google sitemap, soon, so I need that badly. On Fri, Mar 27, 2009 at 1:58 AM, Christian Edward Gruber < christianedwardgru...@gmail.com> wrote: > I have some code I used for the www.israfil.net site, but I haven't > open-sourced it. Let me go dig it out tomorrow and see if i can do that. > > I didn't write the raw feed, though. I used the SyndEntry as a model > object and created a display component and pulled data from the entry. > > regards, > Christian. > > > On 27-Mar-09, at 01:54 , Davor Miku wrote: > > Hi! >> >> I'm using rome to build rss feed component. >> >> @BeginRender >> boolean init(MarkupWriter writer){ >> ... >> ... >> ... >> feed.setEntries(entries); >> SyndFeedOutput output = new SyndFeedOutput(); >> writer.writeRaw(output.outputString(feed)); >> >> return false; >> } >> >> >> I'm using component like: >> >> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >> >> >> >> But I'm getting exception: >> >> Render queue error in AfterRender[Testing:rssfeedwriter]: This markup >> writer >> does not have a current element. The current element is established with >> the >> first call to element() and is maintained across subsequent calls. >> >> >> I can't figure out how to solve this. I need some help urgently. >> >> Thanks in advance. >> > > Christian Edward Gruber > e-mail: christianedwardgru...@gmail.com > weblog: http://www.geekinasuit.com/ > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
RSS Rome
Hi! I'm using rome to build rss feed component. @BeginRender boolean init(MarkupWriter writer){ ... ... ... feed.setEntries(entries); SyndFeedOutput output = new SyndFeedOutput(); writer.writeRaw(output.outputString(feed)); return false; } I'm using component like: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> But I'm getting exception: Render queue error in AfterRender[Testing:rssfeedwriter]: This markup writer does not have a current element. The current element is established with the first call to element() and is maintained across subsequent calls. I can't figure out how to solve this. I need some help urgently. Thanks in advance.
Re: Tapestry-Hibernate Testing
l.invoke(OperationTrackerImpl.java:89) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:898) at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getUnorderedConfiguration(ServiceResourcesImpl.java:80) at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.addUnorderedConfigurationParameter(AbstractServiceCreator.java:140) at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.getParameterDefaultsWithConfiguration(AbstractServiceCreator.java:106) at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.getParameterDefaultsWithConfigurations(ServiceBuilderMethodInvoker.java:46) at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:67) ... 92 more Caused by: org.apache.tapestry5.ioc.internal.OperationException: Symbol 'tapestry.app-package' is not defined. at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:70) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:89) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:898) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:250) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParametersForMethod(InternalUtils.java:213) at org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:90) ... 110 more Caused by: java.lang.RuntimeException: Symbol 'tapestry.app-package' is not defined. at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl$SymbolExpansion.expandSymbol(SymbolSourceImpl.java:136) at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl$SymbolExpansion.valueForSymbol(SymbolSourceImpl.java:99) at org.apache.tapestry5.ioc.internal.services.SymbolSourceImpl.valueForSymbol(SymbolSourceImpl.java:214) at $SymbolSource_12044a847b4.valueForSymbol($SymbolSource_12044a847b4.java) at org.apache.tapestry5.ioc.internal.services.SymbolObjectProvider.provide(SymbolObjectProvider.java:49) at org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObjectProviderImpl.java:38) at $MasterObjectProvider_12044a847b3.provide($MasterObjectProvider_12044a847b3.java) at org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:656) at org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:763) at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:49) at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateInjection(InternalUtils.java:204) at org.apache.tapestry5.ioc.internal.util.InternalUtils.access$000(InternalUtils.java:42) at org.apache.tapestry5.ioc.internal.util.InternalUtils$2.invoke(InternalUtils.java:246) at org.apache.tapestry5.ioc.internal.InvokableToRunnable.run(InvokableToRunnable.java:36) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:48) ... 116 more On Thu, Mar 26, 2009 at 4:12 PM, Juan E. Maya wrote: > Oh, i forgot to tell u that for this test to work tapestry 5.1.0.1 is > required because it uses the CoreHibernateModule > > On Thu, Mar 26, 2009 at 9:08 PM, Juan E. Maya wrote: > > > Hi Davor, Injection only work on tapestry pages or components. U can't > > inject tapestry services in JUnit classes (as far as i know) > > The way i run my test is as follow, i use testng but u could easily see > how > > it would be in Junit > > > > It's important to notice that u have to manually load the Modules u need > to > > run the tests. > > > > > > @BeforeSuite > > public void config() { > > RegistryBuilder builder = new RegistryBuilder(); > > builder.add(TapestryIOCModule.class, HibernateCoreModule.class, > > YourModule.class); > > _registry = builder.build(); > > _registry.performRegistryStartup(); > > } > > > > a test: > > > > @Test > > public void testSomeDao() { > >SomeDao someDao= _registry.getService(SomeDao.class); > >... > >... > > } > > > > And after test run: > > > > @AfterSuite > > public void finishTests() { > > _registry.shutdown(); > > } > > > > Hope it helps > > > > > > > > On Thu, Mar 26, 2009 at 7:17 PM, Davor Miku wrote: > > > >> Hi! > >> > >> This is probably dumb question. > >> > >> I'm using tapestry-hibernate for DAO services. > >> > >> How can I test them with JUnit.? > >> > >> I tried with @Inject SomeDAO in test class, but I'm getting NPE. > >> > > > > >
Re: onActivate() called twice
I know that, but I can't use it. I there any other way? On Thu, Mar 26, 2009 at 3:38 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku > escreveu: > > I have onActivate(String name) called twice. >> When called second time name="images". >> I believe this is because there are some relative links. >> > > Use src="${asset:context:images/image.jpg}" instead of > src="images/image.jpg". > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
onActivate() called twice
I have onActivate(String name) called twice. When called second time name="images". I believe this is because there are some relative links. There is no way to make all URLs absolute. Is there any way to override this multiple calling? Like telling Tapestry not to process anything from certain directory (images) ? Thanks in advance.
Tapestry-Hibernate Testing
Hi! This is probably dumb question. I'm using tapestry-hibernate for DAO services. How can I test them with JUnit.? I tried with @Inject SomeDAO in test class, but I'm getting NPE.
Action Link In Parent Component
Hi! I want to set action link in child component, but action needs to be handled in parent component. I tried to hack like: Class Parent { onActionFromChildEvent(int id){ // Do something } } In child.tml : Action but I'm getting : Component parent does not contain an embedded component with id 'childevent'. How can I achieve this?
Re: AJAX Events
Clicking on actionlink component, some Tapestry method is invoked (method for action event). Question is how can some arbitraryJavaScriptFunction() invoke corresponding Tapestry method? I'm not sure I'm clear enough. On Wed, Feb 25, 2009 at 4:17 AM, Alex Kotchnev wrote: > Davor, > what do you mean by "when some is dropped" ? Can you please > describe in slightly more detail by "custom events" ? > > Cheers, > > Alex Kotchnev > > On Mon, Feb 23, 2009 at 1:56 PM, Davor Miku wrote: > > > Hi! > > > > I've found some tutorials for AJAX in Tapestry, but there all about > action > > event, fired form actionlink component. > > > > My questions is how to define custom events, i.e.. when some is > > dropped. > > > > Thanks! > > >
AJAX Events
Hi! I've found some tutorials for AJAX in Tapestry, but there all about action event, fired form actionlink component. My questions is how to define custom events, i.e.. when some is dropped. Thanks!
Re: If component
Thank you both very much, both solutions work fine! On Thu, Feb 19, 2009 at 8:45 AM, Davor Miku wrote: > Are you sure this is going to work? > > If Foo is B, and I'm: > > > > B doesn't have isInstanceOfA(). > > Is it going to false that or to throw exception? > > > > On Thu, Feb 19, 2009 at 8:41 AM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote: >> > So, how could I accomplish this? >> >> Add methods to your page or component class: >> >> public boolean isInstanceOfA() { >> return item instanceof A; >> } >> >> public boolean isInstanceOfB() { >> return item instanceof B; >> } >> >> >> >> -- >> Thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: If component
Are you sure this is going to work? If Foo is B, and I'm: B doesn't have isInstanceOfA(). Is it going to false that or to throw exception? On Thu, Feb 19, 2009 at 8:41 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote: > > So, how could I accomplish this? > > Add methods to your page or component class: > > public boolean isInstanceOfA() { > return item instanceof A; > } > > public boolean isInstanceOfB() { > return item instanceof B; > } > > > > -- > Thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
If component
Hi! Let's say I have: public interface Foo { getId(); } public class A implements Foo { } public class B implements Foo { } public class C implements Foo { } public class Index { private Map foos = new TreeMap(); } Let there be components for classes A,B,C, also etc. I want in Index.tml to loop over foos, and based on Foo type to call appropriate component (A,B or C): Something like: /* Here should be something like : if(item insanceof A) if(item insanceof B) if(item insanceof C) */ As I know Tapestry If component is checking true/false on property, and adding that properties to Foo is not an option. I hope I'm clear enough. So, how could I accomplish this?
Re: Switch from Prototype to jQuery?
Just a thought : Wouldn't be the best solution to add some sort of wrapper for Prototype written in jQuery. That way Tapestry will be backward compatible, and have jQuery enabled.(Prototype functions would be executed with jQuery). I'm not an expert for JavaScript so I'm not sure if this would be achievable, but IMHO it would the best possible solution. On Fri, Jan 30, 2009 at 5:53 PM, Howard Lewis Ship wrote: > That last concept, JavaScript consolidation, is on the drawing board. > It will work especially well in the concert with the existing GZIP > compression. There's just a few things to work out, such as how to > properly handle components dynamically adding JavaScript libraries. > > On Fri, Jan 30, 2009 at 2:23 PM, Carl Crowder > wrote: > > I really like jQuery and I use it all the time in various Tapestry apps. > But > > it's trivial to use it with Tapestry due as you can just do $j = > > jQuery.noConflict() and use it as $j instead. Most jQuery libraries use > > "jQuery" instead of "$" so there are no conflicts. > > > > Although I prefer jQuery, I can't see much point in switching Tapestry to > it > > just to help people who might want to use it. Perhaps you could switch > > Tapestry so that the jQuery lib gets to use "$", but there's no need to > > rewrite everything. > > > > The other thing is that it would reduce HTTP request if you don't need to > > load jQuery /and/ prototype. But couldn't some filter just pile all of > the > > javascript required by a page into one script? Something like: > > > > > > > > which is just all the js used in the order it was declared? That'd have > the > > same functionality, for less requests. Same goes for CSS. > > > > Carl > > > > Onno Scheffers wrote: > >> > >> On Fri, Jan 30, 2009 at 5:32 PM, Chris Lewis > >> wrote: > >> > >>> that it is less than ideal for building front end widgets > >> > >> > >> > >> That's not true. As a matter of fact, jQuery is currently one of the > most > >> popular Javascript libraries for developing frontend widgets and I see > >> very > >> cool widgets popping up all over the place which I would love to turn > into > >> Tapestry libraries. > >> You'll ususally combine Prototype with Scriptaculous. You can use JQuery > >> with JQuery UI (http://ui.jquery.com). If you Google for jQuery widgets > >> you'll see endless lists of available widgets. See interface for example > ( > >> http://interface.eyecon.ro). > >> > >> > >> > >> > >>> If I'm mistaken about the abilities of jQuery, that is just my > >>> inexperience > >>> with it. The question I would propose is, what's the point? > >>> > >> > >> Well... I'm a Java developer with lots of jQuery experience. To me it > felt > >> like the entire world was shifting towards jQuery. Google uses jQuery > for > >> example (http://blog.jquery.com/2007/11/02/google-using-jquery/) and > >> Microsoft even officially wants to support it and ship it with Visual > >> Studio > >> ( > >> > >> > http://www.microsoft.com/web/content.aspx?id=microsoft-adopts-open-source-jQuery-JavaScript-library > >> ). > >> > >> So while I knew jQuery and around me everyone started using jQuery, I > had > >> to > >> go back, and learn Prototype since I'm usually the guy that does the > >> front-end web components and adding two web-frameworks seems like > >> overkill. > >> > >> This was actually a real concern for me when switching to Tapestry 5. > >> Prototype is a nice library, but in my opinion it's not nearly as nice > as > >> jQuery and it performs noticably slower as well. > >> > >> The problem is that switching to another framework now is that it would > >> probably would break 3rd party components and custom Javascript > components > >> already created in Tapestry projects. > >> > >> > >> regards, > >> > >> Onno > >> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
onChange event
Quick question: How to catch onChange event of select component?
Re: Palette component
I'm using AbstractSelectModel, and ValueEncoder interface. Palette is internally using two lists: one for available options and one for selected. Problem was I needed to change available options (for presentation purpose) So, selectedSet.contains(value); (from Pallete.java) retuned false even if 'value' is contained in selectedSet (available options). I don't know if I'm beaning clear. All lists contain objects of bean Category. Two categoies are equal if they have same id property. Besause I chaned name propery of available categories, selectedSet.contains returns false even if categories have same id. So, If you have similair problem just override equeas and hasSet methods of bean (bean in my case) in maner that suit your needs, and everything will work ok. Hope this helps. On Tue, Jan 27, 2009 at 7:07 AM, James Sherwood wrote: > Hello, > > I just ran into the same problem. > > You are probably creating the available and select lists in 2 different > methods, you need to do it in the same method with the SAME object(or at > least with a list that doesn't reload when you pull your select) otherwise > you get that null error(or at least that was my problem) because you are > basically handing your palette objects in your select that do not exist in > your available. > > I was using the GenericSelectModel from the JumpStart object select that > you > use as both your encoder and model. > > Not sure if it's the same problem that I was having but it sounds alot like > it. Posting your java may help. > > --James > > -Original Message- > From: Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] > Sent: January-27-09 12:56 AM > To: Tapestry users > Subject: Re: Palette component > > Does this one that works help you? > > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/component/cor > einputcomponents > > On 27/01/2009, at 3:32 PM, Davor Miku wrote: > > > Anyone, plaese? > > > > On Mon, Jan 26, 2009 at 10:30 PM, Davor Miku > > wrote: > > > >>public List getOptions() { > >>List list = new ArrayList(); > >>for (Category c : categories) { > >>list.add(new CategoryOptionModel(c)); > >>} > >>return list; > >>} > >> > >> This method returns list of OptionModel objects. If you meant on > >> this, this > >> list is not empty. I'm not sure I'm following you. > >> > >> On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < > >> thiag...@gmail.com> wrote: > >> > >>> Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku > >>> escreveu: > >>> > >>> Hi Thiago, > >>>> > >>> > >>> Hi! > >>> > >>> Thanks for reply. > >>>> Can you be more specific, please? > >>>> > >>> > >>> It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind > >>> if the > >>> answer is as clear as you need. :) > >>> > >>> One of the parameters of Select is model. You should pass a > >>> SelectModel to > >>> it. Basically, a SelectModel is a list of OptionModel instances > >>> (SelectModel.getOptionModels()), one for each option to appear in > >>> your > >>> select tag (and component). Select does not support null > >>> OptionModel's > >>> returned by SelectModel.getOptionModels(), so the exception you seen > >>> happens. > >>> > >>> Summary: make sure the SelectModel returned by getCategoryModel() > >>> does not > >>> return nulls in its getOptionModels(). ;) > >>> > >>> > >>> -- > >>> Thiago H. de Paula Figueiredo > >>> Independent Java consultant, developer, and instructor > >>> http://www.arsmachina.com.br/thiago > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>> > >>> > >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
I've solved it. Bean class MUST override equals() and hashCode() methods! 4 hours of my life ;) On Mon, Jan 26, 2009 at 3:31 PM, Davor Miku wrote: > Thanks! > There is progress however now I'm getting: > > Render queue error in BeginRender[content/Add:content.form]: Bean editor >> model for com.autobrief.content.model.Content does not contain a property >> named 'categories'. Available properties: action, author, creationDate, id, >> intro, publishedDate, source, status, text, title, type. >> > > exception and there is categories property. > > Any clue? > > > On Mon, Jan 26, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Mon, 26 Jan 2009 16:25:12 -0300, Davor Miku >> escreveu: >> >> Yes, I understand that, but with I should be able to >>> override that, and to provide my own rendering >>> of categories property. At least, that's how I understood documentation. >>> >> >> The property rendering can be overriden if it was created in the >> BeanModel, and your categories property wasn't. To add it, use the include >> parameter of BeanEditForm: >> >> . >> >> It should work now. :) >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Palette component
Anyone, plaese? On Mon, Jan 26, 2009 at 10:30 PM, Davor Miku wrote: > public List getOptions() { > List list = new ArrayList(); > for (Category c : categories) { > list.add(new CategoryOptionModel(c)); > } > return list; > } > > This method returns list of OptionModel objects. If you meant on this, this > list is not empty. I'm not sure I'm following you. > > On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku >> escreveu: >> >> Hi Thiago, >>> >> >> Hi! >> >> Thanks for reply. >>> Can you be more specific, please? >>> >> >> It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the >> answer is as clear as you need. :) >> >> One of the parameters of Select is model. You should pass a SelectModel to >> it. Basically, a SelectModel is a list of OptionModel instances >> (SelectModel.getOptionModels()), one for each option to appear in your >> select tag (and component). Select does not support null OptionModel's >> returned by SelectModel.getOptionModels(), so the exception you seen >> happens. >> >> Summary: make sure the SelectModel returned by getCategoryModel() does not >> return nulls in its getOptionModels(). ;) >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Palette component
public List getOptions() { List list = new ArrayList(); for (Category c : categories) { list.add(new CategoryOptionModel(c)); } return list; } This method returns list of OptionModel objects. If you meant on this, this list is not empty. I'm not sure I'm following you. On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku > escreveu: > > Hi Thiago, >> > > Hi! > > Thanks for reply. >> Can you be more specific, please? >> > > It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the > answer is as clear as you need. :) > > One of the parameters of Select is model. You should pass a SelectModel to > it. Basically, a SelectModel is a list of OptionModel instances > (SelectModel.getOptionModels()), one for each option to appear in your > select tag (and component). Select does not support null OptionModel's > returned by SelectModel.getOptionModels(), so the exception you seen > happens. > > Summary: make sure the SelectModel returned by getCategoryModel() does not > return nulls in its getOptionModels(). ;) > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette component
Hi Thiago, Thanks for reply. Can you be more specific, please? On Mon, Jan 26, 2009 at 11:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 23:56:26 -0300, Davor Miku > escreveu: > > Hi! >> > > Hi! > > when currentCategories are initially null, it works fine, otherwise it's >> throwing exception: >> >> - java.lang.NullPointerExceptionStack trace >> >> >> org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) >> > > It seems that your SelectModel had at least one null OptionModel added to > it. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Palette component
Hi! I have palette component in custom component page: when currentCategories are initially null, it works fine, otherwise it's throwing exception: - java.lang.NullPointerExceptionStack trace - org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) - org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147) - org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164) - org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) - org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121) - org.apache.tapestry5.services.TapestryModule$19.renderMarkup(TapestryModule.java:1200) - org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:1580) - org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1561) - org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1543) - org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1525) - org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1495) - org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64) - org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57) - org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:59) - org.apache.tapestry5.services.TapestryModule$35.handle(TapestryModule.java:1779) - org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:92) - org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71) - org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) - org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) - org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) - org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) - org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) - org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) - com.autobrief.services.AppModule$1.service(AppModule.java:92) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) - org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) - org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) - org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) - org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) - org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) - org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) - org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) - org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) - org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) - org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) - org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) - org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857) - org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) - org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) - java.lang.Thread.run(Thread.java:63 Can anyony help?
Re: Palette-base component not showing
Thanks! There is progress however now I'm getting: Render queue error in BeginRender[content/Add:content.form]: Bean editor > model for com.autobrief.content.model.Content does not contain a property > named 'categories'. Available properties: action, author, creationDate, id, > intro, publishedDate, source, status, text, title, type. > exception and there is categories property. Any clue? On Mon, Jan 26, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 16:25:12 -0300, Davor Miku > escreveu: > > Yes, I understand that, but with I should be able to >> override that, and to provide my own rendering >> of categories property. At least, that's how I understood documentation. >> > > The property rendering can be overriden if it was created in the BeanModel, > and your categories property wasn't. To add it, use the include parameter of > BeanEditForm: > > . > > It should work now. :) > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: [T5] component for displaying tree like structure
I haven't find any. I figured out that is based on TreeNode, and that doesn't suites me, I can't easily map it with hibernate. On Mon, Jan 26, 2009 at 3:11 PM, manuel aldana wrote: > cool, is there some documentation how to use it or do I need to reverse > engineer from the sources? > > Davor Miku schrieb: > > You can try this one: >> >> http://code.google.com/p/tapestry5-treegrid/ >> >> >> On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: >> >> >> >>> hi, >>> >>> I want to introduce a component which displays dynamically tree like >>> structure. >>> >>> Its purpose is that I want to load a hierachical navigation bar based on >>> a >>> category+item structure (very similar to filesystem). As a navigation bar >>> it >>> should also link to other main-content pages. >>> >>> I had a look whether I could use an existing component for that but I >>> haven't found any. Does such a tree-structure display component exist >>> already? >>> >>> thanks. >>> >>> -- >>> manuel aldana >>> ald...@gmx.de >>> software-engineering blog: http://www.aldana-online.de >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >>> >> >> >> > > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: [T5] component for displaying tree like structure
You can try this one: http://code.google.com/p/tapestry5-treegrid/ On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: > hi, > > I want to introduce a component which displays dynamically tree like > structure. > > Its purpose is that I want to load a hierachical navigation bar based on a > category+item structure (very similar to filesystem). As a navigation bar it > should also link to other main-content pages. > > I had a look whether I could use an existing component for that but I > haven't found any. Does such a tree-structure display component exist > already? > > thanks. > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
I'm giving up on BeanEdit. Anyway, if some have an idea what's wrong, I like to hear it. Now I'm not even sure that kind of custom rendering of properties is possible at all. On Mon, Jan 26, 2009 at 2:25 PM, Davor Miku wrote: > Yes, I understand that, but with I should be able to > override that, and to provide my own rendering > of categories property. At least, that's how I understood documentation. > > > > > On Mon, Jan 26, 2009 at 3:12 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Mon, 26 Jan 2009 16:01:37 -0300, Davor Miku >> escreveu: >> >> I'm not getting it. >>> >> >> I'm sorry, I could have been clearer. The relevant part of the >> documentation is: >> >> "The default set of property types supported by BeanEditForm: >> * String: as a text field >> * Number: as a text field >> * Enum: as a drop-down list >> * Boolean: as a checkbox >> * Date: as a JavaScript calendar" >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Palette-base component not showing
Yes, I understand that, but with I should be able to override that, and to provide my own rendering of categories property. At least, that's how I understood documentation. On Mon, Jan 26, 2009 at 3:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 16:01:37 -0300, Davor Miku > escreveu: > > I'm not getting it. >> > > I'm sorry, I could have been clearer. The relevant part of the > documentation is: > > "The default set of property types supported by BeanEditForm: > * String: as a text field > * Number: as a text field > * Enum: as a drop-down list > * Boolean: as a checkbox > * Date: as a JavaScript calendar" > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
Documentation: "You may add s to the component; when the name matches (case insensitive) the name of a property, then the corresponding Block is renderered, rather than any of the built in property editor blocks." Well 'categories' is name of one bean's property, and: '' is my way of rendering it. I'm not getting it. On Mon, Jan 26, 2009 at 2:50 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 15:46:35 -0300, Davor Miku > escreveu: > > Thanks for reply. >> It's working fine outside BeanEditForm. >> BeanEditForm is showing everything else fine. >> > > Read the BeanEditForm documentation. ;) My guess is that the default > BeanModel created for you object does not have the categories property > because Tapestry, out of the box, just handles numbers, strings, dates and > enums. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
Thanks for reply. It's working fine outside BeanEditForm. Here's bean : public class Content { ... ... private Set categories = new HashSet(); ... ... } PaletteCategory component implements Field interface. BeanEditForm is showing everything else fine. Any ideas? On Mon, Jan 26, 2009 at 2:32 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Try using your component outside of a BeanEditForm please. > > Em Mon, 26 Jan 2009 15:15:54 -0300, Davor Miku > escreveu: > > > Hi, >> >> Palette-base custom component "category.palette" is not showing when >> embedded into beaneditform: >> >> >> >>> t:currentCategories="content.categories" /> >> >> >> >> Otherwise it woks fine. There is no exception. PRODUCTION_MODE is set to >> false. >> >> Can anyone help, please? >> >> I'm pretty new to Tapestry, sorry if I'm making dumb questions. >> > > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > Consultor, desenvolvedor e instrutor em Java > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Palette-base component not showing
Hi, Palette-base custom component "category.palette" is not showing when embedded into beaneditform: Otherwise it woks fine. There is no exception. PRODUCTION_MODE is set to false. Can anyone help, please? I'm pretty new to Tapestry, sorry if I'm making dumb questions.