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.nextSibling;
if(!elem) return;//no table is direct child
do you table initialization here


Davor Hrg

On Sun, Mar 2, 2008 at 4:58 AM, DavidWei <[EMAIL PROTECTED]> wrote:
>
>  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 to the grid, it would
>  not work without a table id. Can you tell me usually how long it will take
>  to get this kind of bugs fixed? Thanks a lot.
>
>
>
>
>  Howard Lewis Ship wrote:
>  >
>  > 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 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="rowCssClass" >
>  >>  >
>  >>  > 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-into-the-Grid-tp15777353p15777353.html
>  >>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>  >>  >
>  >>  >
>  >>  > -
>  >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >>  >
>  >>  >
>  >>
>  >>  -
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Howard M. Lewis Ship
>  >
>  > Creator Apache Tapestry and Apache HiveMind
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15784108.html
>
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 to the grid, it would
not work without a table id. Can you tell me usually how long it will take
to get this kind of bugs fixed? Thanks a lot.


Howard Lewis Ship wrote:
> 
> 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 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="rowCssClass" >
>>  >
>>  > 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-into-the-Grid-tp15777353p15777353.html
>>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>  >
>>  >
>>  > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15784108.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 all:
> I' ve learnt and used Tapestry 4 for more than 6 months
> It's really a pleasure developing with Tapestry,and therefore, for the
> last two month I have tried to 
> advocate the use of Tapestry in my company.  
> 
> Today, I did a short presentation to my co-workers, and they think the
> separation between logic and UI hs made the code much cleaner.
> However, they are scared by the somewhat complicated specifications, and
> having to input the component ID like @Form @RenderBlock by hand.
> 
> They are impressed by Tapestry, but they want IDE support to learn it
> 
> I know there is IDE support for T4, T5 in IDEA and T4 in Netbeans 5.5, 
> but in our company, we are using Eclipse and Netbeans 6
> 
> I know you may not have additional resources to be put in making a T4
> support in Eclipse and Netbeans 6
> 
> but do you have any plan to start a project creating Eclipse&Netbeans
> support for Tapestry 5 after the official release?
> 
> Thank you for all the hard work!
> 
> Best Regards,
> 
> John
> 
> 

-- 
View this message in context: 
http://www.nabble.com/IDE-Support-for-Tapestry-5-tp15762902p15784000.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 { 
private int weight; 
} 
Thanks,

A.C.



-- 
View this message in context: 
http://www.nabble.com/t5%3A-BeanEditForm-and-complex-beans-tp15782622p15782622.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 values for column "Rank" is unformated
(noticed all caps and underscore): INITIATE, MEMBER, GROUP_ADMIN.  While the
output values for column "Status" is formated: New, Old.

My question is how to print out formated rank when overriding the "rankCell"
in the Grid table.  Obviously, it's not "${user.rank}".  Thanks.

Roster.tml
===

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Roster




${user.rank}





-- 
View this message in context: 
http://www.nabble.com/Format-Output-in-Grid-Table-tp15782616p15782616.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 welcome to make it even more usefull,
>
> Also you are encouraged to post you opinions on
> what the generated method coments should be,
> the goal is to make them usefull, but also not embarassing
> if left unchanged (like many eclipse default ones :D ).
>
> of course, an IntelliJ IDEA counterpart would be most welcome :)
>

done ;-)


-- 
with regards
Sven Homburg


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 I'm quite sure this
>> level of support has never existed for any version of Tapestry.
>>
>> Pai911 wrote:
>> 
>>> Basically, we need the auto-completion support for built-in &
>>> user-defined
>>> components
>>>
>>> For instance, when you write a component , a list of available parameters
>>> pop up for you to choose
>>>
>>> this way, we save more time from consulting the documents.
>>>
>>> In addition, IDE can provide a toolbar of built-in components, and we can
>>> drag it to the template for use
>>>
>>> Best Regards,
>>>
>>> John
>>>
>>>
>>>
>>> Chris Lewis-6 wrote:
>>>   
>>>   
 I'm not sure what you mean by IDE support. I don't think you mean
 tooling because unlike spindle for T3, there are no special plugins for
 T4 or T5. Many of us, including myself, use Eclipse for T5. Is there
 something in particular you are asking about or are having trouble with?

 chris

 Pai911 wrote:
 
 
> Dear all:
> I' ve learnt and used Tapestry 4 for more than 6 months
> It's really a pleasure developing with Tapestry,and therefore, for the
> last
> two month I have tried to 
> advocate the use of Tapestry in my company.  
>
> Today, I did a short presentation to my co-workers, and they think the
> separation between logic and UI hs made the code much cleaner.
> However, they are scared by the somewhat complicated specifications,
> and
> having to input the component ID like @Form @RenderBlock by hand.
>
> They are impressed by Tapestry, but they want IDE support to learn it
>
> I know there is IDE support for T4, T5 in IDEA and T4 in Netbeans 5.5, 
> but in our company, we are using Eclipse and Netbeans 6
>
> I know you may not have additional resources to be put in making a T4
> support in Eclipse and Netbeans 6
>
> but do you have any plan to start a project creating Eclipse&Netbeans
> support for Tapestry 5 after the official release?
>
> Thank you for all the hard work!
>
> Best Regards,
>
> John
>
>   
>   
>   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 
>>>   
>>>   
>>
>> 
>
>   



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, Olivier Jacquet <[EMAIL PROTECTED]> wrote:
> 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 xml of pdf programmatically.
>
>  So, basically, what I want is the following unless someone knows a
>  better way:
>
>  class MyPage {
>function onSubmit() {
>   FOPPage xml = new FOPPage();
>   String output = xml.render(); // or something like this
>   ...save the output to disk...
>   ...convert the output to pdf on disk...
>   ...send the generated pdf to the user...
>}
>  }
>
>  MyPage.tml:
>  Click the button to get the pdf:
>  
>
>  FOPPage.tml:
>  
>  http://www.w3.org/1999/XSL/Format";>
>  ...
>
>
>  Regards,
>  Olivier
>
>
>  [1] http://xmlgraphics.apache.org/fop/
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 to post you opinions on
what the generated method coments should be,
the goal is to make them usefull, but also not embarassing
if left unchanged (like many eclipse default ones :D ).

of course, an IntelliJ IDEA counterpart would be most welcome :)

Davor Hrg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 xml of pdf programmatically.


So, basically, what I want is the following unless someone knows a 
better way:


class MyPage {
  function onSubmit() {
 FOPPage xml = new FOPPage();
 String output = xml.render(); // or something like this
 ...save the output to disk...
 ...convert the output to pdf on disk...
 ...send the generated pdf to the user...
  }
}

MyPage.tml:
Click the button to get the pdf:


FOPPage.tml:

http://www.w3.org/1999/XSL/Format";>
...


Regards,
Olivier


[1] http://xmlgraphics.apache.org/fop/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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="rowCssClass" >
>  >
>  > 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-into-the-Grid-tp15777353p15777353.html
>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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="rowCssClass" >
>
> 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-into-the-Grid-tp15777353p15777353.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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));
}
}

src/main/webapp/SelectLanguage.tml
German
English


-- 
Jesper Zedlitz   Dept. for Computer Science, CAU of Kiel
Room 1108Communication Systems Research Group
 Phone:+49-(0)431-880-7279
Christian-Albrechts-Platz 4  Fax:  +49-(0)431-880-7615
24098 Kiel - Germany [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 possibly , anybody
met such problem ?

Thanks!

outersky

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 possibly , anybody
met such problem ?

Thanks!

outersky

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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-into-the-Grid-tp15777353p15777353.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 have a solution for you, but it's a similar problem to trying to
> use the HibernateTemplate outside of a web-app.  I have some command-line
> tools that look like:
> 
> 
> this.session =
> SessionFactoryUtils.getSession(sessionFactory, true);
> 
> TransactionSynchronizationManager.bindResource(sessionFactory, new
> SessionHolder(session));
> 
The invocation of bindResource fails with:
java.lang.IllegalStateException: Already value
[EMAIL PROTECTED] for key
[EMAIL PROTECTED] bound to thread [main]

Jesper

-- 
Jesper Zedlitz   Dept. for Computer Science, CAU of Kiel
Room 1108Communication Systems Research Group
 Phone:+49-(0)431-880-7279
Christian-Albrechts-Platz 4  Fax:  +49-(0)431-880-7615
24098 Kiel - Germany [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 it in my apps
all the time,

no one is forced to use this, and of course it is useless for properties
used in unit tests... but I really do not want to test my local variable
used in loop

It's not like I couldn't live without it 
why is it so wrong to use this ?

Davor Hrg

On 3/1/08, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> 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.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
>>  library between multiple
>>
>>  Tapestry application.
>>
>>  Thank you Jessek!
>>
>>
>>
>>
>>  Jessek wrote:
>>  >
>>  > I think that Howard may have finally solved this mystery for us in
>>  > this JIRA ticket https://issues.apache.org/jira/browse/TAPESTRY-2055 .
>>  >
>>  > The summary of which is that it's an issue with how OGNL uses static
>>  > class state for certain things (like class resolvers),  which may trip
>>  > applications up that attempt to share a single OGNL jar between
>>  > multiple applications.   The suggestion of making sure that no ognl
>>  > jars are in any shared library area and only within the containing web
>>  > application classpath sounds like the best solution to go with for
>>  > now.
>>  >
>>  > I do plan on finally doing the big OGNL 3.0 refactor to remove all
>>  > static state now that I'm finally being forced in to it because of
>>  > these issues,  but I wouldn't expect to see that come out until
>>  > release 4.1.7 or so of Tapestry.  (assuming a minor bug-fix release
>>  > between now and then)
>>  >
>>  > Let me know if the suggestions in that JIRA ticket solve your issues.
>>  >  If they do I can go update appropriate documentation/faq's about the
>>  > issue until I've finished with the new OGNL release.
>>  >
>>  > On Sun, Feb 24, 2008 at 9:46 PM, Pai911 <[EMAIL PROTECTED]>
>> wrote:
>>  >>
>>  >>  I forgot to mention that I am running "one web app" with two
>> Tapestry
>>  >>  servlets
>>  >>
>>  >>  each with different path pattern
>>  >>
>>  >>  The dir structure is like this
>>  >>
>>  >>  tapestryadm.application
>>  >>  tapestryapplication.application
>>  >>
>>  >>  tapestryadm
>>  >>--page
>>  >>--component
>>  >>--hivemodule.xml
>>  >>
>>  >>  tapestryapplication
>>  >>--page
>>  >>--component
>>  >>--hivemodule.xml
>>  >>
>>  >>
>>  >>
>>  >>  Pai911 wrote:
>>  >>  >
>>  >>  > Hi! I have a windows 2003 server with tomcat 5.5.12 & BEA JRockit
>>  >> 1.5.0_08
>>  >>  >
>>  >>  > The application goes well at the star, but after some time the log
>>  >>  > complains something like the following messages:
>>  >>  >
>>  >>  >
>>  >>  > org.apache.hivemind.ApplicationRuntimeException: Unable to add
>> method
>>  >>  > java.lang.Object get(ognl.OgnlContext, java.lang.Object) to class
>>  >>  > $ASTNotEq_11842016cff: [source error] no such class: $Info_88
>>  >>  >   at
>>  >>  >
>>  >>
>> org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278)
>>  >>  >   at
>>  >>  >
>>  >>
>> org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:171)
>>  >>  >   at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:414)
>>  >>  >   at ognl.Ognl.compileExpression(Ognl.java:141)
>>  >>  >   at
>>  >>  >
>>  >>
>> org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152)
>>  >>  >   at
>>  >>  >
>>  >>
>> org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression
>>  >>  > ..
>>  >>  > 
>>  >>  >
>>  >>
>>  >>  --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Tapestry-4.1.5-Javaassist-and-runtime-errors%21%21-tp15673014p15673065.html
>>  >>
>>  >>
>>  >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> -
>>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>  >>
>>  >>
>>  >
>>  >
>>  >
>>  > --
>>  > Jesse Kuhnert
>>  > Tapestry / OGNL / Dojo team member/developer
>>  >
>>  > Open source based consulting work centered around
>>  > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>>  >
>>  > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>  >
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Re%3A-Tapestry-4.1.5-Javaassist-and-runtime-errors%21%21-tp15672046p15760706.html
>>
>>
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry / OGNL / Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For addi

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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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)
@JoinColumn(name="item_id")
public Item getItem() {
return item;
}
}


-- 
View this message in context: 
http://www.nabble.com/T5%3A-beaneditform-and-entities-with-lookup-tp15773101p15773101.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]