Re: ibasictablemodel help

2006-05-26 Thread Gunna Satria
Hi Amit,
  
  Make sure you implement your getCurrentPageRows() method right.
  Why don't you post the code for the method above, it may help us to figure 
out the problem.
  
  Thanks.
  
  
  Gunna

Jun Tsai [EMAIL PROTECTED] wrote:  2006/5/3, Amit Gupta :

 hi all,
 am working on a ibasictablemodel implementation. i am
 executing a query and returning all results into this
 table. now the table returns all good queries, however
 the navigation on the table does not work. if i click
 on any other page link, the same page (first page)
 loads up. can somebody tell me what i am doing wrong.
 i just want the navigation to work so that i can
 navigate to different pages.
 thanks in advance.


 Did you have a solution?

Thanks .



-- 
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net



-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

licensing q.

2006-05-26 Thread Norbert Sándor

Hello,

My question: with what conditions is it allowed for a GLP licensed 
software to use the ASL licensed Hivemind and Tapestry?

Could you please point me a resource which answers this question?

Thanks in advance,
Norbi

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



RE: licensing q.

2006-05-26 Thread Kristian Marinkovic
i think this link might help:

http://people.apache.org/~cliffs/3party.html

regards,
kris


   
 Norbert Sándor  
 [EMAIL PROTECTED] 
 s.com An
Tapestry users 
 26.05.2006 08:48   users@tapestry.apache.org,   
hivemind-user@jakarta.apache.org
 Kopie
  Bitte antworten  
an   Thema
 Tapestry users   licensing q.   
 [EMAIL PROTECTED] 
pache.org 
   
   
   
   




Hello,

My question: with what conditions is it allowed for a GLP licensed
software to use the ASL licensed Hivemind and Tapestry?
Could you please point me a resource which answers this question?

Thanks in advance,
Norbi

-
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: licensing q.

2006-05-26 Thread Norbert Sándor

Thanks!
As I understand this is for using (eg) GPL sw in ASL sw.
What is with the opposite direction: using ASL sw in GPL sw?

Thanks!
Norbi

Kristian Marinkovic wrote:

i think this link might help:

http://people.apache.org/~cliffs/3party.html

regards,
kris


   
 Norbert Sándor
 [EMAIL PROTECTED] 
 s.com An 
Tapestry users 
 26.05.2006 08:48   users@tapestry.apache.org,   
hivemind-user@jakarta.apache.org   
 Kopie 
  Bitte antworten  
an   Thema 
 Tapestry users   licensing q.   
 [EMAIL PROTECTED] 
pache.org 
   
   
   
   





Hello,

My question: with what conditions is it allowed for a GLP licensed
software to use the ASL licensed Hivemind and Tapestry?
Could you please point me a resource which answers this question?

Thanks in advance,
Norbi

-
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: Hibernate persisted data never makes it to DB

2006-05-26 Thread James Carman
Why don’t you just give Tapernate a try?  There are a few folks using it
already and it is working for them just fine.

 

  _  

From: Mark [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 1:35 AM
To: Tapestry users
Subject: Re: Hibernate persisted data never makes it to DB

 

I added hibernate.connection.autocommit=true to my hibernate.properties
and that fixed it...

So I assume Spring by default does no Session/TX handling, unless I use the
HibernateTransactionManager or do programmatic transaction handling...
One last question, to get back to Tapestry - is Spring's
OpenSessionInViewFilter going to work with Tapestry without limitations?
I see all these posts about Tapernate and others, but I'm not sure whether
OpenSessionInViewFilter will work...

Thanks,

MARK



Mark wrote: 

Lutz Hühnken wrote: 



I asked for applicationContext.xml, and I get a mysql log... well, 
near enough :) 

Sorry, I thought what I had found in the mysql log (the set autocommit=0,
no commit call and explicit Rollback call issued by Hibernate at
shutdown) changed things a lot, but maybe not. 



From your last mail I understand you have the same problem if you use 

the mysql command line client. 

No, the command line INSERT does make it, the records just don't get picked
up by Hibernate... 



So generally, your sql statements never get committed... which is 
weird, because by default, mysql starts new connections with 
autocommit enabled. 

No, only the ones coming from my webapp do not get committed. 




If you connect to mysql from the command line and do 
select @@autocommit; 
what do you get? 

I get 1 



Oh, and although the classname you use for the jdbc driver still 
works, since the mysql connector/j provides backwards compatibility in 
this respect, nowadays people tend to use com.mysql.jdbc.Driver 
because of a name change four years ago. 

Ok, thanks, I changed that. 

- 
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: Overriding Default Radio Button Renderer

2006-05-26 Thread Nick Westgate

Hi Jeff.

If you're using Tapestry 3, pass a static instance of your renderer
to the PropertySelection component via the renderer parameter.

If you're using T4, quoting the docs:
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/form/PropertySelection.html

Earlier versions of PropertySelection (through release 2.2)
were more flexible, they included a renderer  property that
controlled how the selection was rendered. Ultimately, this
proved of little value and this portion of functionality was
deprecated in 2.3 and will be removed in 2.3.

Why? I don't know, the renderer parameter is gone in T4 and it's a pity.
Complaints to the dev list, please.

Cheers,
Nick.


Jeff Parsons wrote:

I've extended RadioPropertySelectionRenderer and overridden the appropriate
methods. I'm brand new to Tapestry and I'm stuck trying to figure out 
how to

tell Tapestry to use my new Renderer class.

Any help would be appreciated.

Thanks



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



Portlet performance

2006-05-26 Thread John Singleton
I'm evaluating Tapestry, and facelets, for use in a Portlet based project. We
need to migrate an exsiting Servlet/JSP based application to Portlets.

Currently I'm leaning towards Tapestry, from a coding standpoint it seems much
cleaner to me. The only problem is the initial overhead when adding a portlet to
a page. I understand this is because creating the per Portlet instance of the
Hivemind registry takes some time. My simple test portlet written in facelets
adds to the page in about a second, but the tapestry version takes about 10. The
customer probably won't stand for this.

Is there anything I can do to reduce this initial hit? Is this something being
addressed in 4.1 ?

Thanks

John


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



RE: Tapernate Moved (finally)...

2006-05-26 Thread James Carman
Well, it's downloadable via SVN at (credentials: anonymous/anon):

http://svn.javaforge.com/svn/tapestry/tapernate/trunk

I have a version of the site set up, but I need to get it published to the
main [EMAIL PROTECTED] site and I don't have control over that.  If you
want to view it, you can checkout tapernate and do a mvn site.  The site
docs will be available in the target directory (target/site/index.html).
Enjoy!

James

-Original Message-
From: Jun Tsai [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 5:58 AM
To: Tapestry users
Subject: Re: Tapernate Moved (finally)...

2006/5/26, James Carman [EMAIL PROTECTED]:

 All,

 I have finally got the Maven2 build working.  So, I decided to upload
 Tapernate to the tapestry-javaforge project.  I am going to work on
 getting
 the site together.  My wife is working on a logo (the word Tapernate
 starting with the tapestry T; a bear is sleeping across the rest of the
 word; maybe even a beanie on the bear's head and an apache feather behind
 his ear; just kidding).

 James



give me a url?



-- 
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net



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



contrib:Palette question

2006-05-26 Thread Andreas Bulling
Hi folks,

after some time of silence I have a new problem/question:
I want to use contrib:Palette and replace selectedTitleBlock,
availableTitleBlock and the image assets. Do I really
have to provide for example a getSelectedTitleBlock() method
in my page class which returns a custom Block component?
Doesn't look clean to me if that's the case...

Thanks in advance,
  Andreas

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



Re: Tapernate Moved (finally)...

2006-05-26 Thread Massimo Lusetti

On 5/26/06, James Carman [EMAIL PROTECTED] wrote:


Well, it's downloadable via SVN at (credentials: anonymous/anon):

http://svn.javaforge.com/svn/tapestry/tapernate/trunk

I have a version of the site set up, but I need to get it published to the
main [EMAIL PROTECTED] site and I don't have control over that.  If you
want to view it, you can checkout tapernate and do a mvn site.  The site
docs will be available in the target directory (target/site/index.html).
Enjoy!


Thats great James, just two questions:
- So the carmanconsulting.com svn repo is deprecated now?
- From a fresh co it miss com.javaforge.hivemind:spring-hibernate3:jar:0.1

--
Massimo
http://meridio.blogspot.com

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



Re: contrib:Palette question

2006-05-26 Thread Andreas Bulling
Well, I've tried the following:

component id=inputPersons type=contrib:Palette
binding name=selected value=persons/
binding name=model value=modelSource.getPersonModel(null, 'true')/
binding name=selectedTitleBlock value=selectedTitleBlock/
binding name=availableTitleBlock value=availableTitleBlock/
binding name=selectImage value=selectImage/
binding name=deselectImage value=deselectImage/
binding name=validators value=validators:required/
/component

and in the page class:

@Component(type = Insert, bindings = { value=message:selected })
public abstract Insert getSelectedTitleBlock();

@Component(type = Insert, bindings = { value=message:available })
public abstract Insert getAvailableTitleBlock();

@Asset(/images/select.gif)
public abstract IAsset getSelectImage();

@Asset(/images/deselect.gif)
public abstract IAsset getDeselectImage();

But this doesn't work... :(
Any ideas?

On 26. Mai 2006 - 12:17:26, Andreas Bulling wrote:
| Hi folks,
| 
| after some time of silence I have a new problem/question:
| I want to use contrib:Palette and replace selectedTitleBlock,
| availableTitleBlock and the image assets. Do I really
| have to provide for example a getSelectedTitleBlock() method
| in my page class which returns a custom Block component?
| Doesn't look clean to me if that's the case...
| 
| Thanks in advance,
|   Andreas


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



Re: contrib:Palette question

2006-05-26 Thread Andreas Bulling
The replacements for the image assets work now...

For the titleBlocks I get the following exception:
org.apache.hivemind.ApplicationRuntimeException
No type converter for type org.apache.tapestry.components.Block is available.
Stack Trace:

* 
org.apache.tapestry.coerce.ValueConverterImpl.coerceValue(ValueConverterImpl.java:105)
* $ValueConverter_10b7061d2ec.coerceValue($ValueConverter_10b7061d2ec.java)
* 
org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:91)
* $Palette_428.getAvailableTitleBlock($Palette_428.java)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
* 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
* 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
* java.lang.reflect.Method.invoke(Method.java:585)
* ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
* ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:904)
* 
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
* ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
* ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
* ognl.ASTProperty.getValueBody(ASTProperty.java:96)
* ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
* ognl.SimpleNode.getValue(SimpleNode.java:210)
* ognl.Ognl.getValue(Ognl.java:333)
* ognl.Ognl.getValue(Ognl.java:310) 

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



Re: Tapernate Moved (finally)...

2006-05-26 Thread Jesse Kuhnert

Yeah the @Transactional would be a nice bonus. I can help (very limited)
point you to where to go, but I have a feeling you'll be able to do it
pretty easily after your AutoWireWorker stuff.

On 5/26/06, Ted Steen [EMAIL PROTECTED] wrote:


I like Howards @Transactional annotation, maybe something for tapernate?


2006/5/26, James Carman [EMAIL PROTECTED]:
 Actually, my plan is to upgrade the epluribus example to use
Tapernate.
 Of course, I haven't run that by Howard yet.  Maybe he's busy enough
these
 days that he won't notice! ;-)



 -Original Message-
 From: Hugo Palma [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 26, 2006 6:53 AM
 To: Tapestry users
 Subject: Re: Tapernate Moved (finally)...

 One more question to the list:

 - Are you going to move tapernate-example too ? I don't see it in the
new
 svn repo.

 On 5/26/06, Massimo Lusetti [EMAIL PROTECTED] wrote:
 
  On 5/26/06, James Carman [EMAIL PROTECTED] wrote:
 
   Well, it's downloadable via SVN at (credentials: anonymous/anon):
  
   http://svn.javaforge.com/svn/tapestry/tapernate/trunk
  
   I have a version of the site set up, but I need to get it published
to
  the
   main [EMAIL PROTECTED] site and I don't have control over that.  If
you
   want to view it, you can checkout tapernate and do a mvn
site.  The
  site
   docs will be available in the target directory
(target/site/index.html).
   Enjoy!
 
  Thats great James, just two questions:
  - So the carmanconsulting.com svn repo is deprecated now?
  - From a fresh co it miss
com.javaforge.hivemind:spring-hibernate3:jar:0.1
 
  --
  Massimo
  http://meridio.blogspot.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]




--
/ted

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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


RE: Tapernate Moved (finally)...

2006-05-26 Thread James Carman
If you use the transaction-per-request (which fits a lot of cases), then
everything's transactional anyway.  So, you really don't need it, IMHO.


-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 9:18 AM
To: Tapestry users
Subject: Re: Tapernate Moved (finally)...

Yeah the @Transactional would be a nice bonus. I can help (very limited)
point you to where to go, but I have a feeling you'll be able to do it
pretty easily after your AutoWireWorker stuff.

On 5/26/06, Ted Steen [EMAIL PROTECTED] wrote:

 I like Howards @Transactional annotation, maybe something for tapernate?


 2006/5/26, James Carman [EMAIL PROTECTED]:
  Actually, my plan is to upgrade the epluribus example to use
 Tapernate.
  Of course, I haven't run that by Howard yet.  Maybe he's busy enough
 these
  days that he won't notice! ;-)
 
 
 
  -Original Message-
  From: Hugo Palma [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 26, 2006 6:53 AM
  To: Tapestry users
  Subject: Re: Tapernate Moved (finally)...
 
  One more question to the list:
 
  - Are you going to move tapernate-example too ? I don't see it in the
 new
  svn repo.
 
  On 5/26/06, Massimo Lusetti [EMAIL PROTECTED] wrote:
  
   On 5/26/06, James Carman [EMAIL PROTECTED] wrote:
  
Well, it's downloadable via SVN at (credentials: anonymous/anon):
   
http://svn.javaforge.com/svn/tapestry/tapernate/trunk
   
I have a version of the site set up, but I need to get it published
 to
   the
main [EMAIL PROTECTED] site and I don't have control over that.  If
 you
want to view it, you can checkout tapernate and do a mvn
 site.  The
   site
docs will be available in the target directory
 (target/site/index.html).
Enjoy!
  
   Thats great James, just two questions:
   - So the carmanconsulting.com svn repo is deprecated now?
   - From a fresh co it miss
 com.javaforge.hivemind:spring-hibernate3:jar:0.1
  
   --
   Massimo
   http://meridio.blogspot.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]
 
 


 --
 /ted

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




-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.



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



Issues with Label Components with Tapestry 4.0

2006-05-26 Thread Matt Raible
I have two different Label components I'm trying to create. 


Issue #1
---
The first is a simple component (just a Label.jwc and Label.html file in 
WEB-INF) that writes a label.  I'd like to include the option to write 
a required indicator.  However, I'm having a difficult time retrieving 
a parameter's value.  Here's what I have so far:


Label.jwc
component-specification allow-informal-parameters=yes
   parameter name=key required=yes/
   parameter name=class required=no/
   component id=label type=Any inherit-informal-parameters=yes/
/component-specification

Label.html
label jwcid=labelspan jwcid=@Insert 
value=ognl:getMessages().getMessage(key)/ div jwcid=@If 
condition=ognl:class == 'required'span class=req */span/label


I'm pretty sure class won't work as a parameter name b/c I've seen a 
stacktrace using this already.  Regardless, let's pretend it does (I've 
tried using other names).  Here's the desired usage:


label class=required desc jwcid=@Label for=phoneNumber 
key=user.phoneNumberPhone Number/label produces:


label class=desc jwcid=@Label for=phoneNumberPhone Numberspan 
class=req */label


I'm fine with the result having class=required desc - I basically just 
need some indicator to show a field is required when I'm not wiring up 
it's input field as a component.


Issue #2
---
I'm overriding ValidationDelegate in order to add required field 
indicators.  I used to be pre-pending an asterisk to the beginning of 
the field, and I had that working.  Now I want to add span class=req 
to the end of the label before the /label shows up.  I'm using 
@FieldLabel and everything *almost* works. I've eliminating error 
styling in the class below so it's easier to read.


public class Validator extends ValidationDelegate {
   public void writeLabelSuffix(IFormComponent component,
IMarkupWriter writer, IRequestCycle 
cycle) {

   if (component.isRequired()) {
   writer.begin(span);
   writer.attribute(class, req);
   writer.printRaw( *);
   writer.end();
   }
   }

The code above results in labelblah blah/labelspan class=req 
*/span, when I'd rather have the span w/in the label.  I tried 
overriding writeLabelAttributes(), but that doesn't seem to allow me to 
create a new tag and write it out w/in the label.  Am I missing 
something here?  Has anyone done something like this - or knows how to 
add a span withing an @FieldLabel?


Thanks,

Matt




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



RE: annotations

2006-05-26 Thread James Carman
You don't need an empty spec, but you do need to tell tapestry where to find
your page/component classes.  In your application file:

application
meta key=org.apache.tapestry.page-class-packages
value=com.myco.web.page/
meta key=org.apache.tapestry.component-class-packages
value=com.myco.web.component/
/application

So, tapestry will look in those packages for pages/components.  Hope that
helps.

James

-Original Message-
From: Alex Kartashev [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 9:41 AM
To: Tapestry users
Subject: Re: annotations

I believe you still you need to have a component spec, albeit an empty one.

-Alex

Dimitri Taranov wrote:

I am trying to use annotations.  To start, I deleted a very simple
component specification and instead added an annotation @ComponentClass.
Do I just add annotations compile and deploy or do I have to compile
with Apt?  When going with the first approach I get Component not
found.  When trying to Apt I get:

warning: No annotation processors found but annotations present.

 

These jars are in my classpath:

commons-codec-1.3.jar  ognl-2.6.7.jar

commons-fileupload-1.1.jar oro-2.0.8.jar

commons-io-1.1.jar tapestry-4.0.1.jar

commons-logging-api-1.0.4.jar  tapestry-annotations-4.0.1.jar

hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar

hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar

javassist-3.0.jar

 

I can't find any additional info on the topic.  Do I need some other
jars?

 

Dimitri


  



-
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]



NullPointerException on form submit

2006-05-26 Thread Roman Krutyakov
Hello,

ive decided to upgrade tapestry in my webapp from 4.0-b13 to 4.0.2. But
now on any form submission ive got an exception (stack trace is
attached)

Exception invoking listener method search of component users/search:
java.lang.NullPointerException
binding:
[EMAIL PROTECTED]
parameter listener, component=users/search, methodName=search,
location=context:/WEB-INF/users/search.html, line 10]

in html:
form jwcid=@Form listener=listener:search delegate=bean:delegate

in page class: 

public void search() {}

what could be a reason of this exception?

Configuration:
Linux 2.6
j2se 1.5.0_06/1.6.0-b2
JBoss 4.0.3SP1 with tomcat 5.5.9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Spring injection in an ASO

2006-05-26 Thread Stephane Decleire

Hi

Is there a way to inject Spring beans in the Visit object or more 
generally in a Tapestry ASO ?


--
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06



Re: Hibernate persisted data never makes it to DB

2006-05-26 Thread Mark

I will, thanks.

MARK


James Carman wrote:

Why don’t you just give Tapernate a try?  There are a few folks using it
already and it is working for them just fine.

 



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



Re: contrib:Palette question

2006-05-26 Thread andyhot
Hi!
Why don't you use:
component id=inputPersons type=contrib:Palette
binding name=selected value=persons/
binding name=model value=modelSource.getPersonModel(null, 'true')/
binding name=selectedTitleBlock value=component:selBlock/
binding name=availableTitleBlock value=component:availBlock/
binding name=selectImage value=selectImage/
binding name=deselectImage value=deselectImage/
binding name=validators value=validators:required/
/component

and in your .html
span jwcid=[EMAIL PROTECTED].../span
e.t.c.

From Andreas Bulling [EMAIL PROTECTED]:

 Hi folks,
 
 after some time of silence I have a new problem/question:
 I want to use contrib:Palette and replace selectedTitleBlock,
 availableTitleBlock and the image assets. Do I really
 have to provide for example a getSelectedTitleBlock() method
 in my page class which returns a custom Block component?
 Doesn't look clean to me if that's the case...
 
 Thanks in advance,
   Andreas
 
 -
 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: annotations

2006-05-26 Thread Dimitri Taranov
Thx, that worked

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 9:44 AM
To: 'Tapestry users'
Subject: RE: annotations

You don't need an empty spec, but you do need to tell tapestry where to
find
your page/component classes.  In your application file:

application
meta key=org.apache.tapestry.page-class-packages
value=com.myco.web.page/
meta key=org.apache.tapestry.component-class-packages
value=com.myco.web.component/
/application

So, tapestry will look in those packages for pages/components.  Hope
that
helps.

James

-Original Message-
From: Alex Kartashev [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 9:41 AM
To: Tapestry users
Subject: Re: annotations

I believe you still you need to have a component spec, albeit an empty
one.

-Alex

Dimitri Taranov wrote:

I am trying to use annotations.  To start, I deleted a very simple
component specification and instead added an annotation
@ComponentClass.
Do I just add annotations compile and deploy or do I have to compile
with Apt?  When going with the first approach I get Component not
found.  When trying to Apt I get:

warning: No annotation processors found but annotations present.

 

These jars are in my classpath:

commons-codec-1.3.jar  ognl-2.6.7.jar

commons-fileupload-1.1.jar oro-2.0.8.jar

commons-io-1.1.jar tapestry-4.0.1.jar

commons-logging-api-1.0.4.jar  tapestry-annotations-4.0.1.jar

hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar

hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar

javassist-3.0.jar

 

I can't find any additional info on the topic.  Do I need some other
jars?

 

Dimitri


  



-
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: Hibernate persisted data never makes it to DB

2006-05-26 Thread Sam Gendler

For the record, Spring's OpenSessionInView filter works just fine for
us.  As for your commit issues, I don't really know what is failing to
work for you.  We are using the hibernateTransactionManager,
transactionInterceptor, and autoProxyCreator to have spring
automatically start and commit transactions around the methods in our
service classes.  It works like a charm, but there isn't a single line
of code that deals with transactions in our codebase (outside the
applicationContext.xml) so I can't tell you what is failing in yours.

Here is a spring config that automatically wraps transaction semantics
around any method with a name that starts with 'update' in several
service classes.

bean id=hibernateTransactionManager
  
class=org.springframework.orm.hibernate3.HibernateTransactionManager
property name=sessionFactory
ref bean=sessionFactory/
/property
/bean

bean id=transactionInterceptor
  
class=org.springframework.transaction.interceptor.TransactionInterceptor
property name=transactionManager
ref bean=hibernateTransactionManager/
/property
property name=transactionAttributeSource
value

com.euroclick.eurolib.service.CustomerService.update*=PROPAGATION_REQUIRED,ISOLATION_REPEATABLE_READ

com.euroclick.eurolib.service.CustomerService.create*=PROPAGATION_REQUIRED,ISOLATION_REPEATABLE_READ

com.euroclick.eurolib.service.ReportService.update*=PROPAGATION_REQUIRED,ISOLATION_REPEATABLE_READ

com.euroclick.eurolib.service.AdvConversionPageService.create*=PROPAGATION_REQUIRED,ISOLATION_REPEATABLE_READ
/value
/property
/bean

bean id=autoProxyCreator
  
class=org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator
property name=interceptorNames
valuetransactionInterceptor/value
/property
property name=beanNames
list
idref local=customerService/
idref local=reportService/
   idref local=advConversionPageService/
/list
/property
/bean

--sam


On 5/26/06, Mark [EMAIL PROTECTED] wrote:

I will, thanks.

MARK


James Carman wrote:
 Why don't you just give Tapernate a try?  There are a few folks using it
 already and it is working for them just fine.




-
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: Portlet performance

2006-05-26 Thread Jesse Kuhnert

First I've heard of it. I didn't initially have plans on doing anything with
it but I'd be happy to in order to save you from jsf. :)

Whatever it is probably won't happen in the initial alpha release as I
have some other items taking higher priority, but if you start a jira issue
with some clear parameters for me to test with we can probably figure
something out.

On 5/26/06, John Singleton [EMAIL PROTECTED] wrote:


I'm evaluating Tapestry, and facelets, for use in a Portlet based project.
We
need to migrate an exsiting Servlet/JSP based application to Portlets.

Currently I'm leaning towards Tapestry, from a coding standpoint it seems
much
cleaner to me. The only problem is the initial overhead when adding a
portlet to
a page. I understand this is because creating the per Portlet instance of
the
Hivemind registry takes some time. My simple test portlet written in
facelets
adds to the page in about a second, but the tapestry version takes about
10. The
customer probably won't stand for this.

Is there anything I can do to reduce this initial hit? Is this something
being
addressed in 4.1 ?

Thanks

John


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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: licensing q.

2006-05-26 Thread Jesse Kuhnert

I think the apache license is ~much~ less strict, so going from ASF  -  GPL
is probably a no brainer. (just not the other way around :) )

On 5/26/06, Norbert Sándor [EMAIL PROTECTED] wrote:


Thanks!
As I understand this is for using (eg) GPL sw in ASL sw.
What is with the opposite direction: using ASL sw in GPL sw?

Thanks!
Norbi

Kristian Marinkovic wrote:
 i think this link might help:

 http://people.apache.org/~cliffs/3party.html

 regards,
 kris



  Norbert Sándor
  [EMAIL PROTECTED]
  s.com
An
 Tapestry users
  26.05.2006 08:48   users@tapestry.apache.org,
 hivemind-user@jakarta.apache.org

  Kopie
   Bitte antworten
 an
Thema
  Tapestry users   licensing q.
  [EMAIL PROTECTED]
 pache.org








 Hello,

 My question: with what conditions is it allowed for a GLP licensed
 software to use the ASL licensed Hivemind and Tapestry?
 Could you please point me a resource which answers this question?

 Thanks in advance,
 Norbi

 -
 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]





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


How to specify page class location

2006-05-26 Thread Rob Dennett
I have forgotten how to specify the location of a page class in the application 
specification, thereby avoiding having to create a separate page specification. 
 Where can I find docs/examples on that?

 

Thanks for your help,

Rob


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.1/348 - Release Date: 5/25/2006
 


Re: How to specify page class location

2006-05-26 Thread Shing Hing Man
You need to specify the meta-key 
org.apache.tapestry.page-class-packages
in .application. Something like :

 meta key=org.apache.tapestry.page-class-packages 
   
math.pages,math.pages.exception,math.pages.users,
   
math.pages.lectureVoting,math.pages.lectureVoting.admin,
math.pages.lectureVoting.admin.module,
math.pages.lectureVoting.vote  
/meta

More details at 
http://jakarta.apache.org/tapestry/UsersGuide/configuration.html#configuration.properties

Shing



--- Rob Dennett [EMAIL PROTECTED] wrote:

 I have forgotten how to specify the location of a
 page class in the application specification, thereby
 avoiding having to create a separate page
 specification.  Where can I find docs/examples on
 that?
 
  
 
 Thanks for your help,
 
 Rob
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.7.1/348 -
 Release Date: 5/25/2006
  
 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: Help with InputValidation

2006-05-26 Thread Shing Hing Man
In the translator, try addding a pattern :

  binding name=translator value=translator:number,
pattern=#.#/


Shing 


--- Pedro Garcia [EMAIL PROTECTED] wrote:

 hi it's me again.
 Thought I had solved the problem with number but now
 every float number is
 losing the decimal digits that are after the comma.
 For example when I post 10,55 in the client browser.
 I m receiving 10.00 on
 the server.
 Can anyone help me with this?
 Thanks
 Pedro
 
 
 -- Forwarded message --
 From: Pedro Garcia [EMAIL PROTECTED]
 Date: May 25, 2006 3:31 PM
 Subject: Fwd: InputValidation
 To: Tapestry users
 tapestry-user@jakarta.apache.org
 
 Hi,
 I am writing just to tell that I found the solution.
 That problem was that I
 was looking at the wrong place.
 
 component id=fieldQuantidade
 type=TextField
 binding name=value value=ognl:
 proposta.quantidade/
 binding name=displayName
 value=literal:Quantidade/
 binding name=translator
 value=translator:number/
 binding name=validators
 value=validators:required/
 /component
 
 Thanks for the attention
 Pedro
 
 
 -- Forwarded message --
 From: Pedro Garcia
 Date: May 25, 2006 11:33 AM
 Subject: InputValidation
 To: Tapestry users
 tapestry-user@jakarta.apache.org
 
 Hi,
 I'm using Tapestry 4 and I am having a hard time
 with number inputvalidation
 with TextField component.
 Can anyone tell me
 how to check if the value is an Integer and
 how to check if the value is a Float and
 how to check if the value is a Double.
 
 and how to set the decimal separator to be a ',' .
 
 Thanks,
 Pedro da Silva Garcia
 
 
 -- 
 Atenciosamente,
 Pedro da Silva Garcia
 
 
 -- 
 Atenciosamente,
 Pedro da Silva Garcia
 

Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

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



Re: Help with InputValidation

2006-05-26 Thread Pedro Garcia

Thanks

On 5/26/06, Shing Hing Man [EMAIL PROTECTED] wrote:


In the translator, try addding a pattern :

  binding name=translator value=translator:number,
pattern=#.#/


Shing


--- Pedro Garcia [EMAIL PROTECTED] wrote:

 hi it's me again.
 Thought I had solved the problem with number but now
 every float number is
 losing the decimal digits that are after the comma.
 For example when I post 10,55 in the client browser.
 I m receiving 10.00 on
 the server.
 Can anyone help me with this?
 Thanks
 Pedro


 -- Forwarded message --
 From: Pedro Garcia [EMAIL PROTECTED]
 Date: May 25, 2006 3:31 PM
 Subject: Fwd: InputValidation
 To: Tapestry users
 tapestry-user@jakarta.apache.org

 Hi,
 I am writing just to tell that I found the solution.
 That problem was that I
 was looking at the wrong place.

 component id=fieldQuantidade
 type=TextField
 binding name=value value=ognl:
 proposta.quantidade/
 binding name=displayName
 value=literal:Quantidade/
 binding name=translator
 value=translator:number/
 binding name=validators
 value=validators:required/
 /component

 Thanks for the attention
 Pedro


 -- Forwarded message --
 From: Pedro Garcia
 Date: May 25, 2006 11:33 AM
 Subject: InputValidation
 To: Tapestry users
 tapestry-user@jakarta.apache.org

 Hi,
 I'm using Tapestry 4 and I am having a hard time
 with number inputvalidation
 with TextField component.
 Can anyone tell me
 how to check if the value is an Integer and
 how to check if the value is a Float and
 how to check if the value is a Double.

 and how to set the decimal separator to be a ',' .

 Thanks,
 Pedro da Silva Garcia


 --
 Atenciosamente,
 Pedro da Silva Garcia


 --
 Atenciosamente,
 Pedro da Silva Garcia


Home page :
  http://uk.geocities.com/matmsh/index.html



___
Try the all-new Yahoo! Mail. The New Version is radically easier to use
– The Wall Street Journal
http://uk.docs.yahoo.com/nowyoucan.html

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





--
Atenciosamente,
Pedro da Silva Garcia


RE: Tapernate Moved (finally)...

2006-05-26 Thread James Carman
I have set up the site temporarily on my server.  You can view it at

www.carmanconsulting.com/tapernate



-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 6:05 AM
To: 'Tapestry users'
Subject: RE: Tapernate Moved (finally)...

Well, it's downloadable via SVN at (credentials: anonymous/anon):

http://svn.javaforge.com/svn/tapestry/tapernate/trunk

I have a version of the site set up, but I need to get it published to the
main [EMAIL PROTECTED] site and I don't have control over that.  If you
want to view it, you can checkout tapernate and do a mvn site.  The site
docs will be available in the target directory (target/site/index.html).
Enjoy!

James

-Original Message-
From: Jun Tsai [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 5:58 AM
To: Tapestry users
Subject: Re: Tapernate Moved (finally)...

2006/5/26, James Carman [EMAIL PROTECTED]:

 All,

 I have finally got the Maven2 build working.  So, I decided to upload
 Tapernate to the tapestry-javaforge project.  I am going to work on
 getting
 the site together.  My wife is working on a logo (the word Tapernate
 starting with the tapestry T; a bear is sleeping across the rest of the
 word; maybe even a beanie on the bear's head and an apache feather behind
 his ear; just kidding).

 James



give me a url?



-- 
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net



-
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]



subscribe

2006-05-26 Thread willem . van . asperen


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



Alt tag for image on FormTable

2006-05-26 Thread Hsin-Tang Pai
I am using Tapestry 3.0.1 and wondering if anyone knows how to make the
HTML alt=textual description attribute appear for the table column
header's img tag for the arrowUpAssest and arrowDownAsset of the
contrib:FormTable component (or subcomponents)? 

 



subclass or bean?

2006-05-26 Thread Willem van Asperen
Hello,

I have a set of pages that have very similar behavior. They have listeners like 
handleTransition and startNewProcess. The first implementation I did was, 
obviously, to capture all these general functionality into XXX a subclass of 
BasePage and then sub class my page classes YYY from there.

Now I can DirectLink to these general listeners directly.

But -- is that the natural way to implement this? Should I not capture the 
general functionality into a bean that is injected into the page? But do I 
then need to manually wire the listener of the page to the bean's methods?

Is there a way to page-description for the XXX page, such that these are true 
for all descendents of it?

Thanks for your thoughts,

Regards,

Willem van Asperen

PA Consulting Group
Innovation. Responsiveness. Delivery.
Coltbaan 33
P.O. Box 1043
3430 BA Nieuwegein
The Netherlands
+31652015182
http://www.paconsulting.com/

DISCLAIMER:  This document should only be read by those persons to whom it is 
addressed and is not intended to be relied upon by any person without 
subsequent written confirmation of its contents.  PA Consulting Group disclaims 
all responsibility and accepts no liability (including in negligence) for the 
consequences of any person acting, or refraining from acting, on such 
information prior to the receipt by those persons of subsequent written 
confirmation.  If you have received this e-mail message in error, please notify 
us immediately by telephone on +31302829600.  Please also destroy and delete 
the message from your computer.  Any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail message is strictly prohibited.


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



Re: subclass or bean?

2006-05-26 Thread Stephane Decleire

I would vote for subclassing :
1. It's the core of OOP to share common pieces of code in a parent class.
2. A bean is not a library. A bean should be seen as an independant 
entity which can have a life by itself ...

IMHO ;-)

Willem van Asperen wrote:


Hello,

I have a set of pages that have very similar behavior. They have listeners like 
handleTransition and startNewProcess. The first implementation I did was, 
obviously, to capture all these general functionality into XXX a subclass of BasePage and then sub 
class my page classes YYY from there.

Now I can DirectLink to these general listeners directly.

But -- is that the natural way to implement this? Should I not capture the general 
functionality into a bean that is injected into the page? But do I then need 
to manually wire the listener of the page to the bean's methods?

Is there a way to page-description for the XXX page, such that these are true 
for all descendents of it?

Thanks for your thoughts,

Regards,

Willem van Asperen

PA Consulting Group
Innovation. Responsiveness. Delivery.
Coltbaan 33
P.O. Box 1043
3430 BA Nieuwegein
The Netherlands
+31652015182
http://www.paconsulting.com/

DISCLAIMER:  This document should only be read by those persons to whom it is 
addressed and is not intended to be relied upon by any person without 
subsequent written confirmation of its contents.  PA Consulting Group disclaims 
all responsibility and accepts no liability (including in negligence) for the 
consequences of any person acting, or refraining from acting, on such 
information prior to the receipt by those persons of subsequent written 
confirmation.  If you have received this e-mail message in error, please notify 
us immediately by telephone on +31302829600.  Please also destroy and delete 
the message from your computer.  Any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail message is strictly prohibited.


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

 



--
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06



Re: subclass or bean?

2006-05-26 Thread Jesse Kuhnert

It depends on exactly what kind of functionality you are working with in
these listeners, but I would probably do something similar to:

-) If you do have functionality that's not related to the web stuff at all
make it a bean that is managed via hivemind, ie make it a service that you
inject. http://jakarta.apache.org/hivemind/hivemind/BuilderFactory.html

-) Try to avoid subclassing whenever possible. Sometimes it's needed, but
often times it usually means there might be a better way.

In your case I would do what comes naturally in tapestry when you have
common functionality like this, create components. (they can have listeners
and do pretty much anything that a page can do ) Wrap all of it in a Border
component that itself just wraps these components.

Most Border components (you can find ample examples in the tapestry example
apps ) wrap Shell Body (custom common fucntionality components, like
navigation/etc..) @RenderBody to allow your page to have its content
written, and finally a common footer.

On 5/26/06, Willem van Asperen [EMAIL PROTECTED] wrote:


Hello,

I have a set of pages that have very similar behavior. They have listeners
like handleTransition and startNewProcess. The first implementation I
did was, obviously, to capture all these general functionality into XXX a
subclass of BasePage and then sub class my page classes YYY from there.

Now I can DirectLink to these general listeners directly.

But -- is that the natural way to implement this? Should I not capture the
general functionality into a bean that is injected into the page? But do I
then need to manually wire the listener of the page to the bean's methods?

Is there a way to page-description for the XXX page, such that these are
true for all descendents of it?

Thanks for your thoughts,

Regards,

Willem van Asperen

PA Consulting Group
Innovation. Responsiveness. Delivery.
Coltbaan 33
P.O. Box 1043
3430 BA Nieuwegein
The Netherlands
+31652015182
http://www.paconsulting.com/

DISCLAIMER:  This document should only be read by those persons to whom it
is addressed and is not intended to be relied upon by any person without
subsequent written confirmation of its contents.  PA Consulting Group
disclaims all responsibility and accepts no liability (including in
negligence) for the consequences of any person acting, or refraining from
acting, on such information prior to the receipt by those persons of
subsequent written confirmation.  If you have received this e-mail message
in error, please notify us immediately by telephone on +31302829600.  Please
also destroy and delete the message from your computer.  Any form of
reproduction, dissemination, copying, disclosure, modification, distribution
and/or publication of this e-mail message is strictly prohibited.


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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Help in writing a custom annotation

2006-05-26 Thread Jesse Kuhnert

Sure, the EnhancementOperation stuff isn't always immediately easy to grok.

This particular class generically extends any existing renderComponent
method (if it exists), adding in logic to do other thingsYou could use
the same approach to do what you want.

There's a lot going on in there that's not relevant to your use case, but it
does show extending an existing non-abstract method .

http://svn.sourceforge.net/viewcvs.cgi/tacos/trunk/src/java/net/sf/tacos/ajax/impl/InjectAjaxComponentRenderWorker.java?view=markuprev=22

On 5/26/06, Dan Adams [EMAIL PROTECTED] wrote:


Okay, so I'm working on this again and just by looking at the other
annotation workers it looks like there aren't any that do anything to
non-abstract methods. My annotation works on methods which have an
implementation. Is there any way to work with a method that is
non-abstract using the tapestry annotation classes?

On Thu, 2006-05-25 at 14:12 -0400, Jesse Kuhnert wrote:
 It's like that at all. The annotation workers run before the normal
 enhancement workers (like property setters and such), whoever claims the
 property first wins. (you can control when your worker is called via
 hivemind's awesome pipeline ability ).



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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


SHTML and Tapestry??

2006-05-26 Thread Mike . Barber
Anybody know how to make SHTML work with Tapestry?  If it does, then what 
do I need to do to make it work?

Thanks,
  - Mike


Honeycomb (Tapestry + Hivemind + Hibernate) Demo Video

2006-05-26 Thread Mark W. Shead
Honeycomb (http://honeycomb.javaforge.com) is a tool to quickly setup  
a new web application using Tapestry, Hivemind, and Hibernate.  It  
works off the idea that you are better off starting with a simple  
runnable application and refactoring it to meet your needs.


After playing around with it for a few weeks, I made a 10 minute  
video to demonstrate how Tapestry works to my co-workers.  You can  
find the video here:


http://www.javaforge.com/proj/doc/details.do?doc_id=10600

In the video I build  a very very simple implementation of the core  
functionality of sites like digg.com or reddit.com (submit and vote  
for urls, popular urls rise to the top).


I thought some of the Tapestry users might find the video interesting  
and possibly useful as a way to demonstrate how Tapestry can save  
development time.


I'll probably try to do another version with narration sometime, so  
if you have any suggestions or comments please send them to me. (I  
already know I need to replace ActionLink.)


--Mark
mwshead at fas.harvard.edu

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



Re: Portlet performance

2006-05-26 Thread Aj Gregory
Hi John, I faced the same issue and opted to create my own version of 
the TapestryApplicationPortlet class so instead of creating a registry 
per portlet instance it creates one per type of portlet (where I'm using 
portletConfig.getPortletName() to distinguish type) so all portlet 
instances of the same portlet type use the same cached registry...


-Aj

John Singleton wrote:

I'm evaluating Tapestry, and facelets, for use in a Portlet based project. We
need to migrate an exsiting Servlet/JSP based application to Portlets.

Currently I'm leaning towards Tapestry, from a coding standpoint it seems much
cleaner to me. The only problem is the initial overhead when adding a portlet to
a page. I understand this is because creating the per Portlet instance of the
Hivemind registry takes some time. My simple test portlet written in facelets
adds to the page in about a second, but the tapestry version takes about 10. The
customer probably won't stand for this.

Is there anything I can do to reduce this initial hit? Is this something being
addressed in 4.1 ?

Thanks

John


-
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: Help in writing a custom annotation

2006-05-26 Thread Dan Adams
Thanks for the help Jesse. Actually, soon after I sent the last email I
realized that (I've been working way too much). Thanks for the help
though. I really appreciate it. My tests just passed so I'm going to go
commit now. :)

On Fri, 2006-05-26 at 16:41 -0400, Jesse Kuhnert wrote:
 Sure, the EnhancementOperation stuff isn't always immediately easy to grok.
 
 This particular class generically extends any existing renderComponent
 method (if it exists), adding in logic to do other thingsYou could use
 the same approach to do what you want.
 
 There's a lot going on in there that's not relevant to your use case, but it
 does show extending an existing non-abstract method .
 
 http://svn.sourceforge.net/viewcvs.cgi/tacos/trunk/src/java/net/sf/tacos/ajax/impl/InjectAjaxComponentRenderWorker.java?view=markuprev=22
 
 On 5/26/06, Dan Adams [EMAIL PROTECTED] wrote:
 
  Okay, so I'm working on this again and just by looking at the other
  annotation workers it looks like there aren't any that do anything to
  non-abstract methods. My annotation works on methods which have an
  implementation. Is there any way to work with a method that is
  non-abstract using the tapestry annotation classes?
 
  On Thu, 2006-05-25 at 14:12 -0400, Jesse Kuhnert wrote:
   It's like that at all. The annotation workers run before the normal
   enhancement workers (like property setters and such), whoever claims the
   property first wins. (you can control when your worker is called via
   hivemind's awesome pipeline ability ).
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
-- 
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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



RE: How to specify page class location

2006-05-26 Thread Rob Dennett
Do you always have to define a template and a page specification?  I always 
thought that using the technique below allowed you to avoid that, but I guess I 
was wrong.

Thanks for your help,
Rob

-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 12:11 PM
To: Tapestry users
Subject: Re: How to specify page class location

You need to specify the meta-key 
org.apache.tapestry.page-class-packages
in .application. Something like :

 meta key=org.apache.tapestry.page-class-packages 
   
math.pages,math.pages.exception,math.pages.users,
   
math.pages.lectureVoting,math.pages.lectureVoting.admin,
math.pages.lectureVoting.admin.module,
math.pages.lectureVoting.vote  
/meta

More details at 
http://jakarta.apache.org/tapestry/UsersGuide/configuration.html#configuration.properties

Shing



--- Rob Dennett [EMAIL PROTECTED] wrote:

 I have forgotten how to specify the location of a
 page class in the application specification, thereby
 avoiding having to create a separate page
 specification.  Where can I find docs/examples on
 that?
 
  
 
 Thanks for your help,
 
 Rob
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.7.1/348 -
 Release Date: 5/25/2006
  
 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.1/348 - Release Date: 5/25/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.1/348 - Release Date: 5/25/2006
 

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