Re: How to add table id into the Grid

2008-03-01 Thread Davor Hrg
for quick fix, you can add an element around the table and give id to it, then you get the element by calling (this code works if table is direct child... not that is hard to look recursively for it) var div = $(id); var elem = div.firstChild; while(elem && elem.tagName != "TABLE") elem=elem.next

Re: How to add table id into the Grid

2008-03-01 Thread DavidWei
Thanks Howard. I have tried the suggestion Davor provided to use t:id instead before, but without any luck. Since you think it is a bug, I would like to report this. Can you tell me how to add this as a bug? I have not done this before. Since I am working on adding the "drag-and-drop" table row t

Re: IDE Support for Tapestry 5

2008-03-01 Thread Pai911
Thank you for all the information & suggestions! I think we will use IDEA first to learn to use T5 and then get back to ECLIPSE & NETBEANS 6 I would really like to persuade my boss to fund one projets but in my experience, it's not that easy Anyway, thank you all! Pai911 wrote: > > Dear al

t5: BeanEditForm and complex beans

2008-03-01 Thread Angelo Chen
Hi, How to use beaneditform with complex beans? it seems that beaneditform does not render those user defined classes, here is an example that I found in the list about the similar question for t4: public class Item { private ItemDetails details; } public class ItemDetails {

Format Output in Grid Table

2008-03-01 Thread samlai
I have a grid table in "Roster.tml". The grid table prints out information for "User(s)". An "User" has many properties including rank and status defined as follow: public enum Rank {INITIATE, MEMBER, GROUP_ADMIN} public enum Status {NEW, OLD} With the template below, the output value

Re: Announce new WIKI page

2008-03-01 Thread Sven Homburg
2008/3/1, Davor Hrg <[EMAIL PROTECTED]>: > > I've added a new wiki page, > this time it is not a tutorial, but usefull Eclipse code templates, > > page is: > http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates > > > check the page, and try out the templates, > any suggestion is welco

Re: IDE Support for Tapestry 5

2008-03-01 Thread Chris Lewis
Indeed, I was not aware of that. Pai911 wrote: > Please see the "Flash demo" in here > > http://handyedit.com/index.html > > Best Regards, > > > Chris Lewis-6 wrote: > >> Yeah that could be nice. I'm still confused about your statement >> that this kind of support exists in Idea. In fact

Re: Fetching the rendered page result.

2008-03-01 Thread Howard Lewis Ship
This is tricky, but doable. You have to jump into a bit of the internals to pull it off, however. Really, Tapestry should add a service to assist in this, something where you feed in a page instance or page name and get back a Document. Add an issue to JIRA. On Sat, Mar 1, 2008 at 11:06 AM, Oli

Announce new WIKI page

2008-03-01 Thread Davor Hrg
I've added a new wiki page, this time it is not a tutorial, but usefull Eclipse code templates, page is: http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates check the page, and try out the templates, any suggestion is welcome to make it even more usefull, Also you are encouraged

Fetching the rendered page result.

2008-03-01 Thread Olivier Jacquet
Hello, Is it possible to access the rendered page result from within a page without calling the actual http:// address? I would need this so that I can setup a page that generates xml (xsl-fo) to be processed by fop [1] to convert it to pdf. That is much more readable than generating the xm

Re: How to add table id into the Grid

2008-03-01 Thread Howard Lewis Ship
Please add this as a bug; the Grid component should render informal parameters into the element it renders. On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > I think you need to put t:id="userList" instead of id="userList" > > Davor Hrg > > > > On 3/1/08, DavidWei <[EMAIL P

Re: How to add table id into the Grid

2008-03-01 Thread Davor Hrg
I think you need to put t:id="userList" instead of id="userList" Davor Hrg On 3/1/08, DavidWei <[EMAIL PROTECTED]> wrote: > > I need to add a table id to the grid to display user list. > > Here is what I try to do: > t:row="user" t:model="userModel"t:rowsPerPage="10" t:lean="true" > t:rowClass=

[FAQ] changing locale

2008-03-01 Thread Jesper Zedlitz
Q: How do I implement a language selection? A: src/main/java/org/example/myapp/pages public class SelectLanguage { @Inject private PersistentLocale persistentLocale; public void onChangeLocale(final String language) { persistentLocale.set(new Locale(language)); } }

Re: [T5] How can I inject an EJB3 EntityManager ?

2008-03-01 Thread Filip S. Adamsen
It's just as the error message says: No service implements the EntityManager interface. You'll have to implement your own service for now if you want to use that instead of a Session. -Filip lu dongping skrev: hi all, I'm a newbie here. Now I can access db with the injected hibernate

[T5] How can I inject an EJB3 EntityManager ?

2008-03-01 Thread lu dongping
hi all, I'm a newbie here. Now I can access db with the injected hibernate session . But when I try to Inject an EJB3 EntityManager, following error occurs: " No service implements the interface javax.persistence.EntityManager " I guess a persistence.xml is needed at least

How to add table id into the Grid

2008-03-01 Thread DavidWei
I need to add a table id to the grid to display user list. Here is what I try to do: I found the id field is not there in the table tag when I viewed source. It is displayed as How can I do? Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-add-table-id-i

RE: T5 PageTester problem (Spring and Hibernate)

2008-03-01 Thread Jesper Zedlitz
Jonathan Barker wrote: > I tried running your test, which gives a lazy-loading exception trying to > access the Set from BeanA. If you change your Hibernate mapping to > use lazy="false" then the problem goes away. > Unfortunately this is no option because the object tree is too large. > I don't

Re: What happened to property accessor methods generation in T5 ?

2008-03-01 Thread Davor Hrg
I've created a minimaly invasive patch for this some time ago, https://issues.apache.org/jira/browse/TAPESTRY-2116 it only requires notion of transformable methods for ClassTransformation so any field access inside them gets transformed I've been patching tapestry with it since, because I use

Re: Tapestry 4.1.5 Javaassist and runtime errors!!

2008-03-01 Thread Pai911
thank you Howard! Jessek wrote: > > Wasn't my idea, thank Howard for figuring it out. ;) > > On Fri, Feb 29, 2008 at 10:19 AM, Pai911 <[EMAIL PROTECTED]> wrote: >> >> For those who encountered this issue >> >> This issue ,as said by Jessek, is solved by "not" sharing Tapestry >> related >>

Re: What happened to property accessor methods generation in T5 ?

2008-03-01 Thread Filip S. Adamsen
Yeah, I tend to break up big pages into smaller components, especially if I can get any re-use out of it, which - it turns out - I often can. -Filip César Lesc skrev: May be is a sign that you need to refactor your class because is getting too many responsibilities. :) César. ---

T5: beaneditform and entities with lookup

2008-03-01 Thread Angelo Chen
Hi, I found beaneditform a time saver, so far I use it only on simple entities, how to use it on entities that has a look up, something like following, what is a best appraoch? thanks. public class OrderLine { Long id; private Item item; @ManyToOne(fetch = FetchType.LAZY) @Joi