Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Thanks Chris.  The intent of this question was to get a start toward streaming 
pure content - not just text, but also (and especially PDF), XML, imagery - 
whatever - anything except HTML.  My solution finally was to mimic a previously 
coded button press on an HTML page.  Why?  Because that is where I get all the 
session variables set (search, query etc) to properly construct the PDF 
content.   Then I hid the button and launched the pure content page as a 
pagelink, instead, as follows: 

t:pagelink page=pdf/Index target=_blankPDF/t:pagelink

Rather convoluted, but gets the job doneand, yes, hardly a simpler hello 
world now...(this workaround would be more useful to say Hello Chris -  
after, say, selecting from an HTML list of users)



On Tuesday, September 2, 2014 4:27 PM, Chris Mylonas ch...@opencsta.org wrote:
 


For future noobs, this is not a simpler hello world, it's making tapestry
respond with text only, no template, nothing but pure text.

I had to do this today and this thread caught my eye last month.

In the standard tapestry 5.3.7 archetype, my Contact.java looks like this.


package org.example.pages;

import org.apache.tapestry5.StreamResponse;
import org.apache.tapestry5.util.TextStreamResponse;

public class Contact {

StreamResponse onActivate(){
return new TextStreamResponse(text/plain,some plain old text -
no .tml file, no nothing. plain old text - yay!);
}
}

I wouldn't describe it as a simpler hello world at all because you're
making tapestry end it's goodness prematurely.  Like learning how to write
a program and the first statement in main() you learn is exit(1);

Re: Simpler Hello World

2014-09-03 Thread Chris Mylonas
I was wondering if you'd want to get the last word in Net Dawg ;)


On Wed, Sep 3, 2014 at 5:26 PM, Net Dawg net.d...@yahoo.com.invalid wrote:

 Thanks Chris.  The intent of this question was to get a start toward
 streaming pure content - not just text, but also (and especially PDF),
 XML, imagery - whatever - anything except HTML.  My solution finally was to
 mimic a previously coded button press on an HTML page.  Why?  Because that
 is where I get all the session variables set (search, query etc) to
 properly construct the PDF content.   Then I hid the button and launched
 the pure content page as a pagelink, instead, as follows:

 t:pagelink page=pdf/Index target=_blankPDF/t:pagelink

 Rather convoluted, but gets the job doneand, yes, hardly a simpler
 hello world now...(this workaround would be more useful to say Hello
 Chris -  after, say, selecting from an HTML list of users)



 On Tuesday, September 2, 2014 4:27 PM, Chris Mylonas ch...@opencsta.org
 wrote:



 For future noobs, this is not a simpler hello world, it's making tapestry
 respond with text only, no template, nothing but pure text.

 I had to do this today and this thread caught my eye last month.

 In the standard tapestry 5.3.7 archetype, my Contact.java looks like this.


 package org.example.pages;

 import org.apache.tapestry5.StreamResponse;
 import org.apache.tapestry5.util.TextStreamResponse;

 public class Contact {

 StreamResponse onActivate(){
 return new TextStreamResponse(text/plain,some plain old text -
 no .tml file, no nothing. plain old text - yay!);
 }
 }

 I wouldn't describe it as a simpler hello world at all because you're
 making tapestry end it's goodness prematurely.  Like learning how to write
 a program and the first statement in main() you learn is exit(1);



Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Well, the thread is still open ;-).  Hopefully the tapestry framework 
developers will see the parameterized streaming pattern to be equally 
important as HTML (and not some sort of hack/gimmick that needs, as you put it, 
to abort the goodness).  



On Tuesday, September 2, 2014 10:07 PM, Chris Mylonas ch...@opencsta.org 
wrote:
 


I was wondering if you'd want to get the last word in Net Dawg ;)



On Wed, Sep 3, 2014 at 5:26 PM, Net Dawg net.d...@yahoo.com.invalid wrote:

 Thanks Chris.  The intent of this question was to get a start toward
 streaming pure content - not just text, but also (and especially PDF),
 XML, imagery - whatever - anything except HTML.  My solution finally was to
 mimic a previously coded button press on an HTML page.  Why?  Because that
 is where I get all the session variables set (search, query etc) to
 properly construct the PDF content.   Then I hid the button and launched
 the pure content page as a pagelink, instead, as follows:

 t:pagelink page=pdf/Index target=_blankPDF/t:pagelink

 Rather convoluted, but gets the job doneand, yes, hardly a simpler
 hello world now...(this workaround would be more useful to say Hello
 Chris -  after, say, selecting from an HTML list of users)



 On Tuesday, September 2, 2014 4:27 PM, Chris Mylonas ch...@opencsta.org
 wrote:



 For future noobs, this is not a simpler hello world, it's making tapestry
 respond with text only, no template, nothing but pure text.

 I had to do this today and this thread caught my eye last month.

 In the standard tapestry 5.3.7 archetype, my Contact.java looks like this.


 package org.example.pages;

 import org.apache.tapestry5.StreamResponse;
 import org.apache.tapestry5.util.TextStreamResponse;

 public class Contact {

 StreamResponse onActivate(){
 return new TextStreamResponse(text/plain,some plain old text -
 no .tml file, no nothing. plain old text - yay!);
 }
 }

 I wouldn't describe it as a simpler hello world at all because you're
 making tapestry end it's goodness prematurely.  Like learning how to write
 a program and the first statement in main() you learn is exit(1);


Re: Simpler Hello World

2014-09-03 Thread Thiago H de Paula Figueiredo
On Wed, 03 Sep 2014 17:44:20 -0300, Net Dawg net.d...@yahoo.com.invalid  
wrote:


Well, the thread is still open ;-).  Hopefully the tapestry framework  
developers will see the parameterized streaming pattern to be equally  
important as HTML (and not some sort of hack/gimmick that needs, as you  
put it, to abort the goodness).


I'm sorry, Net Dawg, but I really don't get what you're saying in this  
thread. For me, a simple Hello World in Tapestry would be this:


public class HelloWorld {
}

html
head
/head
body
pHello, World!/p
/body
/html

If you're generating HTML, in Tapestry the usual method is using a  
template.


Regarding what you call parameterized streaming pattern, that's not a  
Hello World anymore, and Simpler Hello World is the title of the thread  
you've created.



Thanks Chris.  The intent of this question was to get a start toward
streaming pure content - not just text, but also (and especially PDF),
XML, imagery - whatever - anything except HTML.  My solution finally  
was to mimic a previously coded button press on an HTML page.  Why?   
Because that is where I get all the session variables set (search,  
query etc) to

properly construct the PDF content.


1) What do you mean by session variables?

2) If you want to use a button, you can. Just use the Form component:

t:form t:id=pdf
!-- Any form fields you'd want, if any. --
input type=submit value=Generate PDF/
/t:form

StreamResponse onSuccessFromPdf() {
StreamResponse response = ...;
return response;
}


Then I hid the button and launched
the pure content page as a pagelink, instead, as follows:

t:pagelink page=pdf/Index target=_blankPDF/t:pagelink


You can also return StreamResponse in Tapestry event handlers just like  
you do in onActivate().



Rather convoluted, but gets the job doneand, yes, hardly a simpler
hello world now...(this workaround would be more useful to say Hello
Chris -  after, say, selecting from an HTML list of users)


My concept of Hello World, which is probably the same most people have, is  
to just output Hello, World! using the tool of your choice. If you  
parameterize it, it's not a Hello World anymore.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Yes, I may have hijacked my own thread ;-).  


Yes, I wanted to do parameterized/using flash persisted session variables.  Use 
case being: first do query/search for a term using HTML interface to a 
database, then print the result rendered also in PDF format using a 
button/link.  But realized that I could not even print Hello World using 
tapestry - (without HTML tags) - let alone create a fancy custom PDF!  That is 
how this got started... 



On Wednesday, September 3, 2014 11:12 AM, Thiago H de Paula Figueiredo 
thiag...@gmail.com wrote:
 


On Wed, 03 Sep 2014 17:44:20 -0300, Net Dawg net.d...@yahoo.com.invalid  
wrote:

 Well, the thread is still open ;-).  Hopefully the tapestry framework  
 developers will see the parameterized streaming pattern to be equally  
 important as HTML (and not some sort of hack/gimmick that needs, as you  
 put it, to abort the goodness).

I'm sorry, Net Dawg, but I really don't get what you're saying in this  
thread. For me, a simple Hello World in Tapestry would be this:

public class HelloWorld {
}

html
head
/head
body
pHello, World!/p
/body
/html

If you're generating HTML, in Tapestry the usual method is using a  
template.

Regarding what you call parameterized streaming pattern, that's not a  
Hello World anymore, and Simpler Hello World is the title of the thread  
you've created.

 Thanks Chris.  The intent of this question was to get a start toward
 streaming pure content - not just text, but also (and especially PDF),
 XML, imagery - whatever - anything except HTML.  My solution finally  
 was to mimic a previously coded button press on an HTML page.  Why?  
 Because that is where I get all the session variables set (search,  
 query etc) to
 properly construct the PDF content.

1) What do you mean by session variables?

2) If you want to use a button, you can. Just use the Form component:

t:form t:id=pdf
!-- Any form fields you'd want, if any. --
input type=submit value=Generate PDF/
/t:form

StreamResponse onSuccessFromPdf() {
StreamResponse response = ...;
return response;
}

 Then I hid the button and launched
 the pure content page as a pagelink, instead, as follows:

 t:pagelink page=pdf/Index target=_blankPDF/t:pagelink

You can also return StreamResponse in Tapestry event handlers just like  
you do in onActivate().


 Rather convoluted, but gets the job doneand, yes, hardly a simpler
 hello world now...(this workaround would be more useful to say Hello
 Chris -  after, say, selecting from an HTML list of users)

My concept of Hello World, which is probably the same most people have, is  
to just output Hello, World! using the tool of your choice. If you  
parameterize it, it's not a Hello World anymore.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Simpler Hello World

2014-09-02 Thread Chris Mylonas
For future noobs, this is not a simpler hello world, it's making tapestry
respond with text only, no template, nothing but pure text.

I had to do this today and this thread caught my eye last month.

In the standard tapestry 5.3.7 archetype, my Contact.java looks like this.


package org.example.pages;

import org.apache.tapestry5.StreamResponse;
import org.apache.tapestry5.util.TextStreamResponse;

public class Contact {

StreamResponse onActivate(){
return new TextStreamResponse(text/plain,some plain old text -
no .tml file, no nothing. plain old text - yay!);
}
}

I wouldn't describe it as a simpler hello world at all because you're
making tapestry end it's goodness prematurely.  Like learning how to write
a program and the first statement in main() you learn is exit(1);


Re: Simpler Hello World

2014-08-04 Thread Thiago H de Paula Figueiredo
On Sat, 02 Aug 2014 18:21:39 -0300, Net Dawg net.d...@yahoo.com.invalid  
wrote:


I would like to do something simpler.  No html, body tags etc, just pure  
streaming content.


In this case, you shouldn't use a .tml template, because it's meant to  
generate HTML or XML, and Hello World isn't valid HTML or XML. Return a  
StreamResponse in onActivate(). Case closed. :D


Comlpletely do away with templates and components, just use the page  
class to stream Hello World to browser.

In above example, I tried to set HelloWorld.tml as just ${username}


In one sentence, you said you don't want to use a template in this case,  
but in the next sentence you use one. The mind boggles.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Simpler Hello World

2014-08-02 Thread Net Dawg
Here is the simplest Hello World, according to jump start:
http://jumpstart.doublenegative.com.au/jumpstart/helloworld


I would like to do something simpler.  No html, body tags etc, just pure 
streaming content.  Comlpletely do away with templates and components, just use 
the page 
class to stream Hello World to browser.


In above example, I tried to set HelloWorld.tml as just 


${username}

the idea being getUserName can be XML, PDF or whatever...but get the following 
error: 

  Content is not allowed in prolog

Re: Simpler Hello World

2014-08-02 Thread Eugen
Hi,
if You don't like to use the template (.tml) files the entire job is to be
done in page class using the MarkupWriter,
a simple example:

public class Home{
void beginRender(MarkupWriter writer) {
writer.element(html);
writer.write(test);
writer.end();
}
}
this will write to the output html the text test.
in this case, important is to start the page with the html element.

Best regards
Eugen

2014-08-02 23:21 GMT+02:00 Net Dawg net.d...@yahoo.com.invalid:

 Here is the simplest Hello World, according to jump start:
 http://jumpstart.doublenegative.com.au/jumpstart/helloworld


 I would like to do something simpler.  No html, body tags etc, just pure
 streaming content.  Comlpletely do away with templates and components, just
 use the page
 class to stream Hello World to browser.


 In above example, I tried to set HelloWorld.tml as just


 ${username}

 the idea being getUserName can be XML, PDF or whatever...but get the
 following error:

   Content is not allowed in prolog


Re: Simpler Hello World

2014-08-02 Thread Net Dawg
Believe the answer can be derived from following wiki: 

http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile

use the contentType = text/plain.  


I already had the Hello World streaming working in another page (in response 
to a button click/form submit as per above wiki) so I just did this and it 
seems to work fine as it is the one and only method in the page class: 


    @InjectPage
    private Index index;
    

  //
  public StreamResponse onActivate()
   {
  return index.onSelectedFromHelloWorld();
    }



On Saturday, August 2, 2014 12:22 PM, Net Dawg net.d...@yahoo.com.INVALID 
wrote:
 


Thanks, Eugen, for taking the time for below.  However, that does not meet 
requirement.  Specifically, I am *NOT* wanting to write any HTML or tags, just 
stream simple text content to the browser.  In this case, just two words 
exactly as Hello World.   No begin, end html tags (template would be simpler 
in that case).  I also tried writeRaw() method as below after looking up 
org.apache.tapestry5.MarkupWriter: 


      void beginRender(MarkupWriter writer) 
      {
        //writer.element(html);
    writer.writeRaw(Hello World);    
    //writer.end();
      }

Get the following error: 


Page ... did not generate any markup when rendered. This could be because its 
template file could not be located, or because a render phase method in the 
page prevented rendering.

I am looking into (perhaps) some usage of 
org.apache.tapestry5.services.StreamPageContent...the manual seems to suggest 
it is possible. 



On Saturday, August 2, 2014 11:58 AM, Eugen eugens...@gmail.com wrote:



Hi,
if You don't like to use the template (.tml) files the entire job is to be done 
in page class using the MarkupWriter,
a simple example:

public class Home{
    void beginRender(MarkupWriter writer) {
        writer.element(html);
        writer.write(test);
        writer.end();
    }
}

this will write to the output html the text test.

in this case, important is to start the page with the html element.


Best regards

Eugen



2014-08-02 23:21 GMT+02:00 Net Dawg net.d...@yahoo.com.invalid:

Here is the simplest Hello World, according to jump start:
http://jumpstart.doublenegative.com.au/jumpstart/helloworld


I would like to do something simpler.  No html, body tags etc, just pure 
streaming content.  Completely do away with templates and components, just use 
the page class to stream Hello World to browser.



In above example, I tried to set HelloWorld.tml as just


${username}

the idea being getUserName can be XML, PDF or whatever...but get the following 
error:

  Content is not allowed in prolog

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-24 Thread jqzone
Thank for your replies.
Finally ,I found TapestryFilter has put registry into servlet context,so I
do it like this,
MyHttpSessionListoner.java

   @Override
public void sessionDestroyed(HttpSessionEvent se) {
//Get Tapestry IoC Registry
Registry registry = (Registry)
se.getSession().getServletContext().getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME);
ISocialPartyOnlineService socialPartyOnlineService =
registry.getService(ISocialPartyOnlineService.class);
  //Do my session sessionDestroyed logic
}



2011/2/23 Kristian Marinkovic kristian.marinko...@porscheinformatik.at

 hi thiage,

 you're right HttpSessionActivationListener is another possibility :)

 i dont recreate the registry in my HttpSessionListener, i just reuse the
 one created by my tapestry listener

 My TapestryListener snippet (could be a filter):

 public class TapestryListener implements ServletContextListener
 {
public static final String REGISTRY_CONTEXT_NAME =
 org.apache.tapestry5.application-registry;

public void contextInitialized(ServletContextEvent sce)
{

  // same code as in TapestryFilter

registry = appInitializer.createRegistry();

  // set registry in context
context.setAttribute(REGISTRY_CONTEXT_NAME, registry);
...
  // same code as in TapestryFilter
}
 }

 My HttpSessionListener:

 public final class MyHttpSessionListener implements HttpSessionListener
 {
...
public void sessionDestroyed(HttpSessionEvent event)
{
HttpSession httpSession = event.getSession();
...
Registry registry = (Registry)
 httpSession.getServletContext().getAttribute(TapestryListener.
 REGISTRY_CONTEXT_NAME);

if(registry == null)
throw new RuntimeException(No Tapestry registry
 found. Please check that TapestryListener or -Filter is added as
 listener);

... //do something
}
 }

 g,
 kris



 Von:Thiago H. de Paula Figueiredo thiag...@gmail.com
 An: Tapestry users users@tapestry.apache.org, Kristian
 Marinkovic kristian.marinko...@porscheinformatik.at
 Datum:  23.02.2011 12:15
 Betreff:Re: Hello,Can anyone tell how to use servlet session
 Listener with tapestry IoC services ?



 On Wed, 23 Feb 2011 06:18:24 -0300, Kristian Marinkovic
 kristian.marinko...@porscheinformatik.at wrote:

  we've written an own listener (you can create a filter as well) that
  starts tapestry. this listener saves the registry in the servlet context
  so another serlvet listener can then access it. we use it in a
  HttpSessionListener to clear lock if the user session expires.

 My approach was to use a RequestFilter to put in the session an object
 that implements HttpSessionActivationListener. It will be notified when
 the session is created and when its destroyed. No need to create the
 Registry manually. :)

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





RE: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
we've written an own listener (you can create a filter as well) that 
starts tapestry. this listener saves the registry in the servlet context 
so another serlvet listener can then access it. we use it in a 
HttpSessionListener to clear lock if the user session expires.

g,
kris






Von:jqzone jqz...@gmail.com
An: Tapesty users@tapestry.apache.org
Datum:  23.02.2011 08:10
Betreff:Hello,Can anyone tell how to use servlet session Listener 
with tapestry IoC services ?







Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread jqzone
Can you show me the code ?

2011/2/23 Kristian Marinkovic kristian.marinko...@porscheinformatik.at

 we've written an own listener (you can create a filter as well) that
 starts tapestry. this listener saves the registry in the servlet context
 so another serlvet listener can then access it. we use it in a
 HttpSessionListener to clear lock if the user session expires.

 g,
 kris






 Von:jqzone jqz...@gmail.com
 An: Tapesty users@tapestry.apache.org
 Datum:  23.02.2011 08:10
 Betreff:Hello,Can anyone tell how to use servlet session Listener
 with tapestry IoC services ?








Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Thiago H. de Paula Figueiredo
On Wed, 23 Feb 2011 06:18:24 -0300, Kristian Marinkovic  
kristian.marinko...@porscheinformatik.at wrote:



we've written an own listener (you can create a filter as well) that
starts tapestry. this listener saves the registry in the servlet context
so another serlvet listener can then access it. we use it in a
HttpSessionListener to clear lock if the user session expires.


My approach was to use a RequestFilter to put in the session an object  
that implements HttpSessionActivationListener. It will be notified when  
the session is created and when its destroyed. No need to create the  
Registry manually. :)


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
hi thiage, 

you're right HttpSessionActivationListener is another possibility :) 

i dont recreate the registry in my HttpSessionListener, i just reuse the 
one created by my tapestry listener

My TapestryListener snippet (could be a filter):

public class TapestryListener implements ServletContextListener
{
public static final String REGISTRY_CONTEXT_NAME = 
org.apache.tapestry5.application-registry;

public void contextInitialized(ServletContextEvent sce)
{
 
  // same code as in TapestryFilter

registry = appInitializer.createRegistry();

  // set registry in context
context.setAttribute(REGISTRY_CONTEXT_NAME, registry);
...
  // same code as in TapestryFilter
}
}

My HttpSessionListener:

public final class MyHttpSessionListener implements HttpSessionListener
{
...
public void sessionDestroyed(HttpSessionEvent event)
{
HttpSession httpSession = event.getSession();
... 
Registry registry = (Registry) 
httpSession.getServletContext().getAttribute(TapestryListener.
REGISTRY_CONTEXT_NAME);
 
if(registry == null)
throw new RuntimeException(No Tapestry registry 
found. Please check that TapestryListener or -Filter is added as 
listener);

... //do something 
}
}

g,
kris



Von:Thiago H. de Paula Figueiredo thiag...@gmail.com
An: Tapestry users users@tapestry.apache.org, Kristian 
Marinkovic kristian.marinko...@porscheinformatik.at
Datum:  23.02.2011 12:15
Betreff:Re: Hello,Can anyone tell how to use servlet session 
Listener with tapestry IoC services ?



On Wed, 23 Feb 2011 06:18:24 -0300, Kristian Marinkovic 
kristian.marinko...@porscheinformatik.at wrote:

 we've written an own listener (you can create a filter as well) that
 starts tapestry. this listener saves the registry in the servlet context
 so another serlvet listener can then access it. we use it in a
 HttpSessionListener to clear lock if the user session expires.

My approach was to use a RequestFilter to put in the session an object 
that implements HttpSessionActivationListener. It will be notified when 
the session is created and when its destroyed. No need to create the 
Registry manually. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, 
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-22 Thread jqzone



Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-08 Thread jqzone
Thanks for all your replies!
Actually,We are developing an application in Multi-Tenant mode,Every tenant
shares the same web domain.In a private network(every tenant login in before
use the app for example),tapestry works well.But now we meet a new
problem,our customers need to publish some pages to
SNS(FaceBook,twitter...),so I want to perssit the current tenant id into
urls ,In this way when people come from external links,we can know which tenant
they wants to see.
I have looked into tapestry's source code,the way tapesty deals
with encoding locale into path is just the way we want.So I want to know how
to implement this winthout changing  tapestry's source code.
Can anyone help me ?


Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Zhou Jianquan
for example,I have a value myvalue,I want add it to url like below:
-
http://www..com/en/myvalue/mypage


Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Mark
I think you want to look at the PageLink and the context parameter:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/PageLink.html

You would pass mypage in as the context or the link.

Does that do what you want?

Mark

On Tue, Dec 7, 2010 at 8:20 AM, Zhou Jianquan jqz...@gmail.com wrote:
 for example,I have a value myvalue,I want add it to url like below:
 -
 http://www..com/en/myvalue/mypage


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Everton Agner
what's your scenario? just curious.

___
Everton Agner Ramos


2010/12/7 Zhou Jianquan jqz...@gmail.com

 for example,I have a value myvalue,I want add it to url like below:
 -
 http://www..com/en/myvalue/mypage



Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Everton Agner
Well, this wouldn't be 100% dynamic, but you could make a page for each
value you wanna prepend, and consider the rest of it as Context values...

So, the page would setup some app configurations (that the page would read
to know what does it need to change) and redirect to the page (the context
value).

Ex:

URL : http://www..com/en/myvalue/mypage

App root path : com.yourapp

Page : com.yourapp.pages.myvalue - MyValue.java

Context value : /mypage http://www..com/en/myvalue/mypage

So, the MyValue.java page would setup some things and redirect to 
www.xxx.com/en/mypage

Bt, i hope there is some magic and nice way of doing this that i don't
know...

___
Everton Agner Ramos


2010/12/7 Mark mark-li...@xeric.net

 I think you want to look at the PageLink and the context parameter:

 http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/PageLink.html

 You would pass mypage in as the context or the link.

 Does that do what you want?

 Mark

 On Tue, Dec 7, 2010 at 8:20 AM, Zhou Jianquan jqz...@gmail.com wrote:
  for example,I have a value myvalue,I want add it to url like below:
  -
  http://www..com/en/myvalue/mypage
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Hello. New user here!

2009-08-20 Thread P . Stavrinides
 Better than exclude - re-declare the tapestry version in your own
 application pom so Maven's nearest version resolution can work
 properly (that way you don't have to exclude them for each dependency
 that declares a specific version of Tapestry).

On a side note:
Respectfully I disagree with you Kalle :) I maintain that using exclude is the 
most efficient way as there is a chance that you can end up with more than one 
version of the jar on your classpath... also explicit declaration generally 
implies that you have to remember to track versions.

Kind regards,
Peter


- Original Message -
From: Thiago H. de Paula Figueiredo thiag...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, 19 August, 2009 01:50:43 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Hello. New user here!

Em Tue, 18 Aug 2009 19:19:43 -0300, Martin Torre Castro  
mad...@hotmail.com escreveu:

 I have find an alternative solution for my problem, but I'd like to  
 thank Kalle, Joshua and Thiago for the help. I'm interested in Tapestry  
 and events and I will look for information about mixings and the  
 Chenille Kit in the future. Thank you very much.

You're welcome!
Just a little nitpick: it's mixins, not mixings. ;) Their use and  
implementation in Tapestry are described in  
http://tapestry.apache.org/tapestry5.1/guide/mixins.html. In a broader  
sense, you can read about mixins in http://en.wikipedia.org/wiki/Mixin.

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



Re: Hello. New user here!

2009-08-20 Thread Kalle Korhonen
On Wed, Aug 19, 2009 at 11:54 PM, p.stavrini...@albourne.com wrote:
 On a side note:
 Respectfully I disagree with you Kalle :) I maintain that using exclude is 
 the most efficient way as there is a chance that you can end up with more 
 than one version of the jar on your classpath... also explicit declaration 
 generally implies that you have to remember to track versions.


If you are using the same group and artifact id, you cannot end up
with multiple versions of the same lib in your classpath. Maven's
version resolution takes care of that (or is supposed to anyway).
Maven 2.x doesn't allow global excludes which is why you may always
end up with the wrong version in the classpath as a transitive
dependency if you don't explicitly declare your own version
dependencies (nearest version resolution). Not that I want to disagree
with you - if you have a case where this is not happening, it's either
a bug or I'm misunderstanding something.

Kalle



 - Original Message -
 From: Thiago H. de Paula Figueiredo thiag...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Wednesday, 19 August, 2009 01:50:43 GMT +02:00 Athens, Beirut, 
 Bucharest, Istanbul
 Subject: Re: Hello. New user here!

 Em Tue, 18 Aug 2009 19:19:43 -0300, Martin Torre Castro
 mad...@hotmail.com escreveu:

 I have find an alternative solution for my problem, but I'd like to
 thank Kalle, Joshua and Thiago for the help. I'm interested in Tapestry
 and events and I will look for information about mixings and the
 Chenille Kit in the future. Thank you very much.

 You're welcome!
 Just a little nitpick: it's mixins, not mixings. ;) Their use and
 implementation in Tapestry are described in
 http://tapestry.apache.org/tapestry5.1/guide/mixins.html. In a broader
 sense, you can read about mixins in http://en.wikipedia.org/wiki/Mixin.

 --
 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: Hello. New user here!

2009-08-18 Thread Martin Torre Castro

I have find an alternative solution for my problem, but I'd like to thank 
Kalle, Joshua and Thiago for the help. I'm interested in Tapestry and events 
and I will look for information about mixings and the Chenille Kit in the 
future. Thank you very much.




 Date: Mon, 17 Aug 2009 21:24:45 -0700
 Subject: Re: Hello. New user here!
 From: kalle.o.korho...@gmail.com
 To: users@tapestry.apache.org
 
 Better than exclude - re-declare the tapestry version in your own
 application pom so Maven's nearest version resolution can work
 properly (that way you don't have to exclude them for each dependency
 that declares a specific version of Tapestry).
 
 Kalle
 
 
 On Mon, Aug 17, 2009 at 5:27 PM, Thiago H. de Paula
 Figueiredothiag...@gmail.com wrote:
  Em Mon, 17 Aug 2009 21:11:09 -0300, Joshua Martin josmar52...@gmail.com
  escreveu:
 
  I never figured it out - although I believe that the Chenille Kit
  handles this nicely. The problem was that Chenille Kit isn't
  compatible with T5.1 and I need 5.1 - note here that the upcoming
  version of CK will support T5.1
 
  It is compatible. If you're using Maven, make sure you exclude Tapestry from
  ChenilleKit's transitive dependencies
 
  You can also look at some examples posted in Inge Solvoll's blog:
  http://tinybits.blogspot.com/.
 
  --
  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
 

_
Internet Explorer 8 más sencillo y seguro ¡Descárgatelo gratis!
http://events.es.msn.com/noticias/internet-explorer-8/

Re: Hello. New user here!

2009-08-18 Thread Thiago H. de Paula Figueiredo
Em Tue, 18 Aug 2009 19:19:43 -0300, Martin Torre Castro  
mad...@hotmail.com escreveu:


I have find an alternative solution for my problem, but I'd like to  
thank Kalle, Joshua and Thiago for the help. I'm interested in Tapestry  
and events and I will look for information about mixings and the  
Chenille Kit in the future. Thank you very much.


You're welcome!
Just a little nitpick: it's mixins, not mixings. ;) Their use and  
implementation in Tapestry are described in  
http://tapestry.apache.org/tapestry5.1/guide/mixins.html. In a broader  
sense, you can read about mixins in http://en.wikipedia.org/wiki/Mixin.


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



Hello. New user here!

2009-08-17 Thread Martin Torre Castro


   Hello, I'm a student as engineer and I have to make an application web with 
Tapestry. It's a wonderful framework, but I'm finding many problems which I 
spend too many time to solve and I've got very few time, so I decided to 
suscribe to this mail-list.

   My current problem now is finding a way to catch and handle an event from a 
Select component. I've read on google about something called mixings but 
don't know/understand about it. 
   I tried with something like:


.tml file: 
t:select t:id=incidSearchType t:validate=required


.java file:
@OnEvent(component=incidSearchType)
void onActionFromIncidSearchType() {  /*Some code here*/ }


   Is there an easy way with @OnEvent or with naming convention to do it or do 
i have to use mixings? I would appreciate some sample code, please. I have read 
half the book that Kolesnikov wrote about tapestry5 and I couldn't find 
anything. Am I missing something? 


   Please, help me. I would aprecciate very much. Thanks for your attention and 
sorry about my english and my newbie question

Thanks very much.
 
_
Entérate de todas las noticias al instante ¡Suscríbete al servicio de Alertas 
MSN!
http://especiales.es.msn.com/noticias/msninforma.aspx

Re: Hello. New user here!

2009-08-17 Thread Joshua Martin
I had the same problem with catching an event from a Select. I was
trying to update a Zone according to a selection in a Select.

I never figured it out - although I believe that the Chenille Kit
handles this nicely. The problem was that Chenille Kit isn't
compatible with T5.1 and I need 5.1 - note here that the upcoming
version of CK will support T5.1

Here's what I did to solve my dilemma - albeit a more backwards way
of doing things: I use a button on the page with the Select to get the
Select's value and then redirect to a page, passing the value along.
Let me know if you need the code to get the Select's value.


On Mon, Aug 17, 2009 at 7:17 PM, Martin Torre Castromad...@hotmail.com wrote:


   Hello, I'm a student as engineer and I have to make an application web with 
 Tapestry. It's a wonderful framework, but I'm finding many problems which I 
 spend too many time to solve and I've got very few time, so I decided to 
 suscribe to this mail-list.

   My current problem now is finding a way to catch and handle an event from a 
 Select component. I've read on google about something called mixings but 
 don't know/understand about it.
   I tried with something like:


 .tml file:
 t:select t:id=incidSearchType t:validate=required


 .java file:
 @OnEvent(component=incidSearchType)
 void onActionFromIncidSearchType() {  /*Some code here*/ }


   Is there an easy way with @OnEvent or with naming convention to do it or do 
 i have to use mixings? I would appreciate some sample code, please. I have 
 read half the book that Kolesnikov wrote about tapestry5 and I couldn't find 
 anything. Am I missing something?


   Please, help me. I would aprecciate very much. Thanks for your attention 
 and sorry about my english and my newbie question

 Thanks very much.

 _
 Entérate de todas las noticias al instante ¡Suscríbete al servicio de Alertas 
 MSN!
 http://especiales.es.msn.com/noticias/msninforma.aspx



-- 
_

Joshua S. Martin


CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney client or other legal privileges, and or
proprietary non public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution, or
reproduction of this message and or any of its attachments (if any) by
unintended recipients is not authorized and may be unlawful.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Hello. New user here!

2009-08-17 Thread Thiago H. de Paula Figueiredo
Em Mon, 17 Aug 2009 21:11:09 -0300, Joshua Martin josmar52...@gmail.com  
escreveu:



I never figured it out - although I believe that the Chenille Kit
handles this nicely. The problem was that Chenille Kit isn't
compatible with T5.1 and I need 5.1 - note here that the upcoming
version of CK will support T5.1


It is compatible. If you're using Maven, make sure you exclude Tapestry  
from ChenilleKit's transitive dependencies


You can also look at some examples posted in Inge Solvoll's blog:  
http://tinybits.blogspot.com/.


--
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: Hello. New user here!

2009-08-17 Thread Kalle Korhonen
Better than exclude - re-declare the tapestry version in your own
application pom so Maven's nearest version resolution can work
properly (that way you don't have to exclude them for each dependency
that declares a specific version of Tapestry).

Kalle


On Mon, Aug 17, 2009 at 5:27 PM, Thiago H. de Paula
Figueiredothiag...@gmail.com wrote:
 Em Mon, 17 Aug 2009 21:11:09 -0300, Joshua Martin josmar52...@gmail.com
 escreveu:

 I never figured it out - although I believe that the Chenille Kit
 handles this nicely. The problem was that Chenille Kit isn't
 compatible with T5.1 and I need 5.1 - note here that the upcoming
 version of CK will support T5.1

 It is compatible. If you're using Maven, make sure you exclude Tapestry from
 ChenilleKit's transitive dependencies

 You can also look at some examples posted in Inge Solvoll's blog:
 http://tinybits.blogspot.com/.

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



Re: Tapestry 5 + Scala : an hello world example

2009-01-08 Thread Andreas Andreou
dependencies
dependency
groupIdorg.codehaus.groovy.maven.runtime/groupId
artifactIdgmaven-runtime-default/artifactId
version1.0-rc-3/version
/dependency
/dependencies

build
plugins
plugin
groupIdorg.codehaus.groovy.maven/groupId
artifactIdgmaven-plugin/artifactId
version1.0-rc-3/version
executions
execution
goals
goalgenerateStubs/goal
goalcompile/goal
goalgenerateTestStubs/goal
goaltestCompile/goal
/goals
/execution
/executions
/plugin
/plugins
/build

On Thu, Jan 8, 2009 at 8:21 AM, Angelo Chen angelochen...@yahoo.com.hk wrote:

 Hi,

 As I understand Scala needs only this dependency:

  dependency
  groupIdorg.scala-lang/groupId
  artifactIdscala-library/artifactId
  version2.7.3.RC1/version
/dependency

 how about Groovy?


 Howard Lewis Ship wrote:

 Pretty much the same story for Groovy.  There are still some issues
 related to access to private instance variables and introduced base
 classes.


 On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis chris_le...@bellsouth.net
 wrote:
 wow.

 Let me get this straight - to get scala to work with T5, all you did was
 use scala source files and the scala maven plugin??? That's it!?!

 If that's all it takes I guess the reason is that scala files compile
 directly to normal java classes, and that's all done by maven. Man
 that's awesome!

 farm...@linagora.com wrote:
 Hello,

 I'm building a toy application to see how Scala and Tapestry 5 get
 together. The first step was to translate the quickstart application
 into
 Scala (that was a little first step ;).

 Scala is a functional/object oriented language that runs on the JVM, and
 which I appreciate a lot more than Java (more expressive, and statically
 typed, and yes it was obvious that I don't spend my spare time on things
 that I dislike :). Info about the language may be found here:
 http://scala-lang.org

 I will try to extend the application in the next weeks, and see if I
 encounter major problems or if everything goes for the best.

 The source code is available on github:
 http://github.com/fanf/scala-t5-blog/
 You will find more information about how to get the code on my blog:
 http://fanf42.blogspot.com/ and more precisely:
 http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

 Enjoy !

 Francois Armand


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 http://thegodcode.net


 -
 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




 --
 View this message in context: 
 http://www.nabble.com/Tapestry-5-%2B-Scala-%3A-an-hello-world-example-tp21341625p21346502.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry 5 + Scala : an hello world example

2009-01-07 Thread farmand
Hello,

I'm building a toy application to see how Scala and Tapestry 5 get
together. The first step was to translate the quickstart application into
Scala (that was a little first step ;).

Scala is a functional/object oriented language that runs on the JVM, and
which I appreciate a lot more than Java (more expressive, and statically
typed, and yes it was obvious that I don't spend my spare time on things
that I dislike :). Info about the language may be found here:
http://scala-lang.org

I will try to extend the application in the next weeks, and see if I
encounter major problems or if everything goes for the best.

The source code is available on github: http://github.com/fanf/scala-t5-blog/
You will find more information about how to get the code on my blog:
http://fanf42.blogspot.com/ and more precisely:
http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

Enjoy !

Francois Armand


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5 + Scala : an hello world example

2009-01-07 Thread Chris Lewis
wow.

Let me get this straight - to get scala to work with T5, all you did was
use scala source files and the scala maven plugin??? That's it!?!

If that's all it takes I guess the reason is that scala files compile
directly to normal java classes, and that's all done by maven. Man
that's awesome!

farm...@linagora.com wrote:
 Hello,

 I'm building a toy application to see how Scala and Tapestry 5 get
 together. The first step was to translate the quickstart application into
 Scala (that was a little first step ;).

 Scala is a functional/object oriented language that runs on the JVM, and
 which I appreciate a lot more than Java (more expressive, and statically
 typed, and yes it was obvious that I don't spend my spare time on things
 that I dislike :). Info about the language may be found here:
 http://scala-lang.org

 I will try to extend the application in the next weeks, and see if I
 encounter major problems or if everything goes for the best.

 The source code is available on github: http://github.com/fanf/scala-t5-blog/
 You will find more information about how to get the code on my blog:
 http://fanf42.blogspot.com/ and more precisely:
 http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

 Enjoy !

 Francois Armand


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


   

-- 
http://thegodcode.net


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5 + Scala : an hello world example

2009-01-07 Thread Howard Lewis Ship
Pretty much the same story for Groovy.  There are still some issues
related to access to private instance variables and introduced base
classes.


On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis chris_le...@bellsouth.net wrote:
 wow.

 Let me get this straight - to get scala to work with T5, all you did was
 use scala source files and the scala maven plugin??? That's it!?!

 If that's all it takes I guess the reason is that scala files compile
 directly to normal java classes, and that's all done by maven. Man
 that's awesome!

 farm...@linagora.com wrote:
 Hello,

 I'm building a toy application to see how Scala and Tapestry 5 get
 together. The first step was to translate the quickstart application into
 Scala (that was a little first step ;).

 Scala is a functional/object oriented language that runs on the JVM, and
 which I appreciate a lot more than Java (more expressive, and statically
 typed, and yes it was obvious that I don't spend my spare time on things
 that I dislike :). Info about the language may be found here:
 http://scala-lang.org

 I will try to extend the application in the next weeks, and see if I
 encounter major problems or if everything goes for the best.

 The source code is available on github: http://github.com/fanf/scala-t5-blog/
 You will find more information about how to get the code on my blog:
 http://fanf42.blogspot.com/ and more precisely:
 http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

 Enjoy !

 Francois Armand


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 http://thegodcode.net


 -
 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



Re: Tapestry 5 + Scala : an hello world example

2009-01-07 Thread Angelo Chen

Hi,

As I understand Scala needs only this dependency:

 dependency
  groupIdorg.scala-lang/groupId
  artifactIdscala-library/artifactId
  version2.7.3.RC1/version
/dependency
 
how about Groovy?


Howard Lewis Ship wrote:
 
 Pretty much the same story for Groovy.  There are still some issues
 related to access to private instance variables and introduced base
 classes.
 
 
 On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis chris_le...@bellsouth.net
 wrote:
 wow.

 Let me get this straight - to get scala to work with T5, all you did was
 use scala source files and the scala maven plugin??? That's it!?!

 If that's all it takes I guess the reason is that scala files compile
 directly to normal java classes, and that's all done by maven. Man
 that's awesome!

 farm...@linagora.com wrote:
 Hello,

 I'm building a toy application to see how Scala and Tapestry 5 get
 together. The first step was to translate the quickstart application
 into
 Scala (that was a little first step ;).

 Scala is a functional/object oriented language that runs on the JVM, and
 which I appreciate a lot more than Java (more expressive, and statically
 typed, and yes it was obvious that I don't spend my spare time on things
 that I dislike :). Info about the language may be found here:
 http://scala-lang.org

 I will try to extend the application in the next weeks, and see if I
 encounter major problems or if everything goes for the best.

 The source code is available on github:
 http://github.com/fanf/scala-t5-blog/
 You will find more information about how to get the code on my blog:
 http://fanf42.blogspot.com/ and more precisely:
 http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

 Enjoy !

 Francois Armand


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 http://thegodcode.net


 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-%2B-Scala-%3A-an-hello-world-example-tp21341625p21346502.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry 5.0.13 and hello world application

2008-08-12 Thread blueband


  Original message.  
From: Sven Homburg [EMAIL PROTECTED]
Sent: 27 Jul 2008 4:00am -07:00
To: Tapestry users users@tapestry.apache.org
Subject: Re: tapestry 5.0.13 and hello world application

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameapp Tapestry 5 Application/display-name
context-param
param-nametapestry.app-package/param-name
param-valuet5demo/param-value
/context-param
filter
filter-nameapp/filter-name

 HERE IS YOUR ERROR change to
filter-classorg.apache.tapestry5.TapestryFilter/filter-class

/filter
filter-mapping
filter-nameapp/filter-name
url-pattern/*/url-pattern
/filter-mapping
/web-app


2008/7/27 Argo Vilberg [EMAIL PROTECTED]

 Hi,


 www.softpro.ee/tapestry5/


 app.war is with tapestry 5.0.13 lib it does'nt work with tomcat 5.5.26
 app1.war is with tapestry 5.0.10 lib it work with tomcat 5.5.26



 I change 4 lib file:
 javaassists-3.6.ga.jar - javaassists-3.7.ga.jar
 tapestry-ioc-5.0.10.jar - tapestry-ioc-5.0.13.jar
 tapestry-core-5.0.10.jar - tapestry-core-5.0.13.jar
 tapestry-annotations-5.0.10.jar - tapestry-annotations-5.0.13.jar



 And also i change AppModule.java

 5.0.10
 import org.apache.tapestry.TapestryConstants;
 import org.apache.tapestry.ioc.MappedConfiguration;
 import org.apache.tapestry.ioc.OrderedConfiguration;
 import org.apache.tapestry.ioc.ServiceBinder;
 import org.apache.tapestry.ioc.annotations.InjectService;
 import org.apache.tapestry.services.Request;
 import org.apache.tapestry.services.RequestFilter;
 import org.apache.tapestry.services.RequestHandler;
 import org.apache.tapestry.services.Response;

configuration.add(TapestryConstants.SUPPORTED_LOCALES_SYMBOL, en);
configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL,
 false);


 5.0.13
 import org.apache.tapestry5.SymbolConstants;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.OrderedConfiguration;
 import org.apache.tapestry5.ioc.ServiceBinder;
 import org.apache.tapestry5.ioc.annotations.InjectService;
 import org.apache.tapestry5.services.Request;
 import org.apache.tapestry5.services.RequestFilter;
 import org.apache.tapestry5.services.RequestHandler;
 import org.apache.tapestry5.services.Response;

configuration.add(SymbolConstants.SUPPORTED_LOCALES, en);
configuration.add(SymbolConstants.PRODUCTION_MODE, false);



 Whats the problem?


 Argo Vilberg
 [EMAIL PROTECTED]
 www.softpro.ee






 2008/7/27 Filip S. Adamsen [EMAIL PROTECTED]

 Hi,
 
  Please show some code or we won't be able to help you. :)
 
  Also, please don't cross-post to the dev and users lists. This belongs
  here, in the users list, and has nothing to do with the development of
  Tapestry itself.
 
  -Filip
 
 
  On 2008-07-26 19:41, Argo Vilberg wrote:
 
  Hello
 
  If i try just simple hello world application in tapestry 5, then it work
  with 5.0.6 but not 5.0.13.
 
  I cant figure out what is problem?
 
 
  HTTP Status 404 - /t5first/
  --
 
  *type* Status report
 
  *message* */t5first/*
 
  *description* *The requested resource (/t5first/) is not available.*
  --
  Apache Tomcat/5.5.26
 
 
 
  Argo
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 
Sent using a Sony Ericsson mobile phone.

Re: tapestry 5.0.13 and hello world application

2008-07-27 Thread Argo Vilberg
app1.war works with apache-tomcat-5.5.26,

but app.war dosent work with apache-tomcat-5.5.26.



Argo


2008/7/27 Argo Vilberg [EMAIL PROTECTED]

 Hi,


 app.war is with tapestry 5.0.13 lib
 app1.war is with tapestry 5.0.10 lib


 I change 4 lib file:
 javaassists-3.6.ga.jar - javaassists-3.7.ga.jar
 tapestry-ioc-5.0.10.jar - tapestry-ioc-5.0.13.jar
 tapestry-core-5.0.10.jar - tapestry-core-5.0.13.jar
 tapestry-annotations-5.0.10.jar - tapestry-annotations-5.0.13.jar



 And also i change AppModule.java

 5.0.10
 import org.apache.tapestry.TapestryConstants;
 import org.apache.tapestry.ioc.MappedConfiguration;
 import org.apache.tapestry.ioc.OrderedConfiguration;
 import org.apache.tapestry.ioc.ServiceBinder;
 import org.apache.tapestry.ioc.annotations.InjectService;
 import org.apache.tapestry.services.Request;
 import org.apache.tapestry.services.RequestFilter;
 import org.apache.tapestry.services.RequestHandler;
 import org.apache.tapestry.services.Response;

 configuration.add(TapestryConstants.SUPPORTED_LOCALES_SYMBOL,
 en);
 configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL,
 false);


 5.0.13
 import org.apache.tapestry5.SymbolConstants;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.OrderedConfiguration;
 import org.apache.tapestry5.ioc.ServiceBinder;
 import org.apache.tapestry5.ioc.annotations.InjectService;
 import org.apache.tapestry5.services.Request;
 import org.apache.tapestry5.services.RequestFilter;
 import org.apache.tapestry5.services.RequestHandler;
 import org.apache.tapestry5.services.Response;

 configuration.add(SymbolConstants.SUPPORTED_LOCALES, en);
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);



 Argo Vilberg
 [EMAIL PROTECTED]
 www.softpro.ee






 2008/7/27 Filip S. Adamsen [EMAIL PROTECTED]

 Hi,

 Please show some code or we won't be able to help you. :)

 Also, please don't cross-post to the dev and users lists. This belongs
 here, in the users list, and has nothing to do with the development of
 Tapestry itself.

 -Filip


 On 2008-07-26 19:41, Argo Vilberg wrote:

 Hello

 If i try just simple hello world application in tapestry 5, then it work
 with 5.0.6 but not 5.0.13.

 I cant figure out what is problem?


 HTTP Status 404 - /t5first/
 --

 *type* Status report

 *message* */t5first/*

 *description* *The requested resource (/t5first/) is not available.*
 --
 Apache Tomcat/5.5.26



 Argo


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





Fwd: tapestry 5.0.13 and hello world application

2008-07-27 Thread Argo Vilberg
Hi,


www.softpro.ee/tapestry5/


app.war is with tapestry 5.0.13 lib it does'nt work with tomcat 5.5.26
app1.war is with tapestry 5.0.10 lib it work with tomcat 5.5.26



I change 4 lib file:
javaassists-3.6.ga.jar - javaassists-3.7.ga.jar
tapestry-ioc-5.0.10.jar - tapestry-ioc-5.0.13.jar
tapestry-core-5.0.10.jar - tapestry-core-5.0.13.jar
tapestry-annotations-5.0.10.jar - tapestry-annotations-5.0.13.jar



And also i change AppModule.java

5.0.10
import org.apache.tapestry.TapestryConstants;
import org.apache.tapestry.ioc.MappedConfiguration;
import org.apache.tapestry.ioc.OrderedConfiguration;
import org.apache.tapestry.ioc.ServiceBinder;
import org.apache.tapestry.ioc.annotations.InjectService;
import org.apache.tapestry.services.Request;
import org.apache.tapestry.services.RequestFilter;
import org.apache.tapestry.services.RequestHandler;
import org.apache.tapestry.services.Response;

configuration.add(TapestryConstants.SUPPORTED_LOCALES_SYMBOL, en);
configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL,
false);


5.0.13
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.ServiceBinder;
import org.apache.tapestry5.ioc.annotations.InjectService;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.RequestFilter;
import org.apache.tapestry5.services.RequestHandler;
import org.apache.tapestry5.services.Response;

configuration.add(SymbolConstants.SUPPORTED_LOCALES, en);
configuration.add(SymbolConstants.PRODUCTION_MODE, false);



Whats the problem?


Argo Vilberg
[EMAIL PROTECTED]
www.softpro.ee






2008/7/27 Filip S. Adamsen [EMAIL PROTECTED]

Hi,

 Please show some code or we won't be able to help you. :)

 Also, please don't cross-post to the dev and users lists. This belongs
 here, in the users list, and has nothing to do with the development of
 Tapestry itself.

 -Filip


 On 2008-07-26 19:41, Argo Vilberg wrote:

 Hello

 If i try just simple hello world application in tapestry 5, then it work
 with 5.0.6 but not 5.0.13.

 I cant figure out what is problem?


 HTTP Status 404 - /t5first/
 --

 *type* Status report

 *message* */t5first/*

 *description* *The requested resource (/t5first/) is not available.*
 --
 Apache Tomcat/5.5.26



 Argo


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




Re: tapestry 5.0.13 and hello world application

2008-07-27 Thread Sven Homburg
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameapp Tapestry 5 Application/display-name
context-param
param-nametapestry.app-package/param-name
param-valuet5demo/param-value
/context-param
filter
filter-nameapp/filter-name

 HERE IS YOUR ERROR change to
filter-classorg.apache.tapestry5.TapestryFilter/filter-class

/filter
filter-mapping
filter-nameapp/filter-name
url-pattern/*/url-pattern
/filter-mapping
/web-app


2008/7/27 Argo Vilberg [EMAIL PROTECTED]

 Hi,


 www.softpro.ee/tapestry5/


 app.war is with tapestry 5.0.13 lib it does'nt work with tomcat 5.5.26
 app1.war is with tapestry 5.0.10 lib it work with tomcat 5.5.26



 I change 4 lib file:
 javaassists-3.6.ga.jar - javaassists-3.7.ga.jar
 tapestry-ioc-5.0.10.jar - tapestry-ioc-5.0.13.jar
 tapestry-core-5.0.10.jar - tapestry-core-5.0.13.jar
 tapestry-annotations-5.0.10.jar - tapestry-annotations-5.0.13.jar



 And also i change AppModule.java

 5.0.10
 import org.apache.tapestry.TapestryConstants;
 import org.apache.tapestry.ioc.MappedConfiguration;
 import org.apache.tapestry.ioc.OrderedConfiguration;
 import org.apache.tapestry.ioc.ServiceBinder;
 import org.apache.tapestry.ioc.annotations.InjectService;
 import org.apache.tapestry.services.Request;
 import org.apache.tapestry.services.RequestFilter;
 import org.apache.tapestry.services.RequestHandler;
 import org.apache.tapestry.services.Response;

configuration.add(TapestryConstants.SUPPORTED_LOCALES_SYMBOL, en);
configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL,
 false);


 5.0.13
 import org.apache.tapestry5.SymbolConstants;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.OrderedConfiguration;
 import org.apache.tapestry5.ioc.ServiceBinder;
 import org.apache.tapestry5.ioc.annotations.InjectService;
 import org.apache.tapestry5.services.Request;
 import org.apache.tapestry5.services.RequestFilter;
 import org.apache.tapestry5.services.RequestHandler;
 import org.apache.tapestry5.services.Response;

configuration.add(SymbolConstants.SUPPORTED_LOCALES, en);
configuration.add(SymbolConstants.PRODUCTION_MODE, false);



 Whats the problem?


 Argo Vilberg
 [EMAIL PROTECTED]
 www.softpro.ee






 2008/7/27 Filip S. Adamsen [EMAIL PROTECTED]

 Hi,
 
  Please show some code or we won't be able to help you. :)
 
  Also, please don't cross-post to the dev and users lists. This belongs
  here, in the users list, and has nothing to do with the development of
  Tapestry itself.
 
  -Filip
 
 
  On 2008-07-26 19:41, Argo Vilberg wrote:
 
  Hello
 
  If i try just simple hello world application in tapestry 5, then it work
  with 5.0.6 but not 5.0.13.
 
  I cant figure out what is problem?
 
 
  HTTP Status 404 - /t5first/
  --
 
  *type* Status report
 
  *message* */t5first/*
 
  *description* *The requested resource (/t5first/) is not available.*
  --
  Apache Tomcat/5.5.26
 
 
 
  Argo
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


tapestry 5.0.13 and hello world application

2008-07-26 Thread Argo Vilberg
Hello

If i try just simple hello world application in tapestry 5, then it work
with 5.0.6 but not 5.0.13.

I cant figure out what is problem?


HTTP Status 404 - /t5first/
--

*type* Status report

*message* */t5first/*

*description* *The requested resource (/t5first/) is not available.*
--
Apache Tomcat/5.5.26



Argo


Re: tapestry 5.0.13 and hello world application

2008-07-26 Thread Filip S. Adamsen

Hi,

Please show some code or we won't be able to help you. :)

Also, please don't cross-post to the dev and users lists. This belongs 
here, in the users list, and has nothing to do with the development of 
Tapestry itself.


-Filip

On 2008-07-26 19:41, Argo Vilberg wrote:

Hello

If i try just simple hello world application in tapestry 5, then it work
with 5.0.6 but not 5.0.13.

I cant figure out what is problem?


HTTP Status 404 - /t5first/
--

*type* Status report

*message* */t5first/*

*description* *The requested resource (/t5first/) is not available.*
--
Apache Tomcat/5.5.26



Argo



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



tapestry portlet hello world example

2007-11-21 Thread cometta
looking for portlet example in tapetry. anyone can recommand one? 


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



Re: tapestry portlet hello world example

2007-11-21 Thread Borut Bolčina
http://labs.jboss.com/portletswap/portlets_framework.html

2007/11/21, cometta [EMAIL PROTECTED]:

 looking for portlet example in tapetry. anyone can recommand one?


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




Re: Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-06-18 Thread Kalle Korhonen

Jesse et al,

do you have any more information on Hivemind 1.1.2 and any plans to change
the version in Tap 4.1.2? AFAIK, there's also 1.2.1 branch and
2.0.-alpha-1release but otherwise it looks to me Hivemind development
has stalled.

Kalle


On 5/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I wonder if there is going to be a 1.1.2 hivemind release or should I try
applying patches and waiting for the eventual good-enough-to-commit blah
blah to eventually get some of these things fixed up?

On 5/9/07, Jan Vissers [EMAIL PROTECTED] wrote:

 Hi,

 With the help of this Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J
 10.1.3 - Dig a little bit more, anyone please give me a ladder to climb
 up post
 I've now got things working on 10.1.3.2

 Below the hivemodule.xml I created:

 ?xml version=1.0?
 module id=com.cumquatit.refapp version=1.0.0
 package=com.cumquatit.refapp
 implementation service-id=hivemind.LoggingInterceptor
 create-instance
 class=com.cumquatit.refapp.HivemindFixLoggingInterceptor /
 /implementation
 /module


 And the class to go along with it:

 package com.cumquatit.refapp;

 import java.util.List;

 import org.apache.hivemind.InterceptorStack;
 import org.apache.hivemind.ServiceInterceptorFactory;
 import org.apache.hivemind.internal.Module;

 public class HivemindFixLoggingInterceptor implements
 ServiceInterceptorFactory {
 @SuppressWarnings(unchecked)
 public void createInterceptor(InterceptorStack arg0, Module arg1,
 List arg2) {
 }
 }


 This basically does the trick.
 Thanks Jesse (and I hope you refrain from taking every post coming from
 me as an insult),

 -J.

 (On OC4J11 Tech Preview, it is not yet working - but the error indicates
 something different than a specific Hivemind issue)


 Jan Vissers wrote:
  Below the trace I see, whenever Tapestry 4.1.1 tries to load
  Has anybody ever tried Tapestry 4.1.1 on OC4J?
 
  **
 
 
  07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
  Unable to construct service
 tapestry.init.ApplicationSpecificationInitial
  izer: Error building service
  tapestry.init.ApplicationSpecificationInitializer: Error at
  code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
  tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-
 framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  line 46, column 89: Service interceptor
  factory hivemind.LoggingInterceptor failed to create
  org.apache.tapestry.parse.ISpecificationParser interceptor for service
  tapestry.parse.S
  pecificationParser as class $ISpecificationParser_112709303e6:
  argument type mismatch
  07/05/09 13:22:02location:
 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
 web-1.0.0/WEB-INF/lib/tapestry-framewo
 
  rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21
 
  07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
  Error building service
tapestry.init.ApplicationSpecificationInitializer
 :
  Error at
 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
 web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
 
  F/tapestry.init.xml, line 46, column 89: Service interceptor factory
  hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse
.
  ISpecificationParser interceptor for service
  tapestry.parse.SpecificationParser as class
  $ISpecificationParser_112709303e6: argument type mi
  smatch
  07/05/09 13:22:02location:
 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
 web-1.0.0/WEB-INF/lib/tapestry-framewo
 
  rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21
 
  07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
  Error building service
tapestry.init.ApplicationSpecificationInitializer
 :
  Error at
 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
 web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
 
  F/tapestry.init.xml, line 46, column 89: Service interceptor factory
  hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse
.
  ISpecificationParser interceptor for service
  tapestry.parse.SpecificationParser as class
  $ISpecificationParser_112709303e6: argument type mi
  smatch
  07/05/09 13:22:02location:
 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
 web-1.0.0/WEB-INF/lib/tapestry-framewo
 
  rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67
 
  07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
  Error at
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
  refapp-web-1.0.0/WEB-INF/lib/tapestry-
 framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  line 46, column 89: Service interceptor factory hivem
  ind.LoggingInterceptor failed to create
  org.apache.tapestry.parse.ISpecificationParser interceptor for service
  tapestry.parse.SpecificationP
  arser as class $ISpecificationParser_112709303e6: argument type

Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-05-09 Thread Jan Vissers

Below the trace I see, whenever Tapestry 4.1.1 tries to load
Has anybody ever tried Tapestry 4.1.1 on OC4J?

**


07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Unable to construct service tapestry.init.ApplicationSpecificationInitial
izer: Error building service 
tapestry.init.ApplicationSpecificationInitializer: Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor
factory hivemind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.S
pecificationParser as class $ISpecificationParser_112709303e6: argument 
type mismatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_112709303e6: argument type mi

smatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_112709303e6: argument type mi

smatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
at code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor factory hivem
ind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationP

arser as class $ISpecificationParser_112709303e6: argument type mismatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Service interceptor factory hivemind.LoggingInterceptor failed to create
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class $ISpecificationParser_112

709303e6: argument type mismatch

07/05/09 13:22:02 java.lang.IllegalArgumentException: argument type mismatch
07/05/09 13:22:02 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
07/05/09 13:22:02 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
07/05/09 13:22:02 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
07/05/09 13:22:02 
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
07/05/09 13:22:02 
org.apache.hivemind.service.impl.LoggingInterceptorFactory.instantiateInterceptor(LoggingInterceptorFactory.java:290)
07/05/09 13:22:02 
org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInterceptor(LoggingInterceptorFactory.java:255)
07/05/09 13:22:02 
org.apache.hivemind.impl.ServiceInterceptorContributionImpl.createInterceptor(ServiceInterceptorContributionImpl.java:95)
07/05/09 13:22:02 
org.apache.hivemind.impl.InterceptorStackImpl.process(InterceptorStackImpl.java:116)
07/05/09 13:22:02 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.addInterceptors(AbstractServiceModelImpl.java:85)
07/05/09 13:22:02 
org.apache.hivemind.impl.servicemodel.PooledServiceModel.constructServiceProxy(PooledServiceModel.java:154)
07/05/09 13:22:02 
org.apache.hivemind.impl.servicemodel.PooledServiceModel.init(PooledServiceModel.java:130)
07/05/09 

Tapestry 4.1.1 Hello World (also) not working on Oracle 11.1.1.0.0 (Technology Preview)

2007-05-09 Thread Jan Vissers

Below the trace I see, whenever Tapestry 4.1.1 tries to load
This time on 11g (Technology Preview)

**


07/05/09 14:51:08 org.apache.hivemind.ApplicationRuntimeException: 
Unable to construct service tapestry.init.ApplicationSpecificationInitial
izer: Error building service 
tapestry.init.ApplicationSpecificationInitializer: Error at 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applica
tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor
factory hivemind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.S
pecificationParser as class $ISpecificationParser_11270e49392: argument 
type mismatch
07/05/09 14:51:08location: 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 14:51:08 org.apache.hivemind.ApplicationRuntimeException: Error 
building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_11270e49392: argument type mi

smatch
07/05/09 14:51:08location: 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 14:51:08 org.apache.hivemind.ApplicationRuntimeException: Error 
building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_11270e49392: argument type mi

smatch
07/05/09 14:51:08location: 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67

07/05/09 14:51:08 org.apache.hivemind.ApplicationRuntimeException: Error 
at code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/
refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor factory hivem
ind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationP

arser as class $ISpecificationParser_11270e49392: argument type mismatch
07/05/09 14:51:08location: 
code-source:/D:/ora/ocj11_1_1_0_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo

rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89

07/05/09 14:51:08 org.apache.hivemind.ApplicationRuntimeException: 
Service interceptor factory hivemind.LoggingInterceptor failed to create
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class $ISpecificationParser_112

70e49392: argument type mismatch

07/05/09 14:51:08 java.lang.IllegalArgumentException: argument type mismatch
07/05/09 14:51:08 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
07/05/09 14:51:08 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
07/05/09 14:51:08 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
07/05/09 14:51:08 
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
07/05/09 14:51:08 
org.apache.hivemind.service.impl.LoggingInterceptorFactory.instantiateInterceptor(LoggingInterceptorFactory.java:290)
07/05/09 14:51:08 
org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInterceptor(LoggingInterceptorFactory.java:255)
07/05/09 14:51:08 
org.apache.hivemind.impl.ServiceInterceptorContributionImpl.createInterceptor(ServiceInterceptorContributionImpl.java:95)
07/05/09 14:51:08 
org.apache.hivemind.impl.InterceptorStackImpl.process(InterceptorStackImpl.java:116)
07/05/09 14:51:08 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.addInterceptors(AbstractServiceModelImpl.java:85)
07/05/09 14:51:08 
org.apache.hivemind.impl.servicemodel.PooledServiceModel.constructServiceProxy(PooledServiceModel.java:154)
07/05/09 14:51:08 
org.apache.hivemind.impl.servicemodel.PooledServiceModel.init(PooledServiceModel.java:130)
07/05/09 14:51:08 

Re: Tapestry 4.1.1 Hello World (also) not working on Oracle 11.1.1.0.0 (Technology Preview)

2007-05-09 Thread Jesse Kuhnert

I re-forwarded a solution/reply from a previous user list question.

p.s. I thought you were off using wicket now?

On 5/9/07, Jan Vissers [EMAIL PROTECTED] wrote:


Below the trace I see, whenever Tapestry 4.1.1 tries to load
This time on 11g (Technology Preview)




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Tapestry 4.1.1 Hello World (also) not working on Oracle 11.1.1.0.0 (Technology Preview)

2007-05-09 Thread Jan Vissers

Hi Jesse -

Is it me, I didn't quite catch the fowarded solution/reply...

Thanks,
-J.

p.s. No, not wicket - although I've been trying some Faclets+Seam+JSF 
lately... ;-)


Jesse Kuhnert wrote:

I re-forwarded a solution/reply from a previous user list question.

p.s. I thought you were off using wicket now?

On 5/9/07, Jan Vissers [EMAIL PROTECTED] wrote:


Below the trace I see, whenever Tapestry 4.1.1 tries to load
This time on 11g (Technology Preview)






--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
W http://www.cumquat.nl

E [EMAIL PROTECTED]
M +31 6 51 169 556
B http://www.cumquat.nl/technology_atom10.xml



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



Re: Tapestry 4.1.1 Hello World (also) not working on Oracle 11.1.1.0.0 (Technology Preview)

2007-05-09 Thread janjonge

Maybe he's building a prototype in both frameworks in order to convince his
client that Tapestry is not the way to go.
That said, I also want to add that not all tasks have to be done with
Tapestry. Sometimes some framework, like Wicket,  does the job better and
more effieciently.
Jesse, let me ask you this question. Why does anyone originating from the
Netherlands or having the .nl extension in his email address have to be a
Wicket user in your eyes? You seem to be a very narrow minded boy and asks
myself if you deserve to be commiter. People like you can only introduce
bugs but not make things better.

Regrads,
Jan de Jonge

Jessek wrote:
 
 I re-forwarded a solution/reply from a previous user list question.
 
 p.s. I thought you were off using wicket now?
 
 On 5/9/07, Jan Vissers [EMAIL PROTECTED] wrote:

 Below the trace I see, whenever Tapestry 4.1.1 tries to load
 This time on 11g (Technology Preview)


 
 -- 
 Jesse Kuhnert
 Tapestry/Dojo team member/developer
 
 Open source based consulting work centered around
 dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
 
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-4.1.1-%22Hello-World%22-%28also%29-not-working-on-Oracle-11.1.1.0.0-%28Technology-Preview%29-tf3715519.html#a10394216
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: Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-05-09 Thread Jan Vissers

Hi,

With the help of this Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J 
10.1.3 - Dig a little bit more, anyone please give me a ladder to climb 
up post

I've now got things working on 10.1.3.2

Below the hivemodule.xml I created:

?xml version=1.0?
module id=com.cumquatit.refapp version=1.0.0 
package=com.cumquatit.refapp

   implementation service-id=hivemind.LoggingInterceptor
   create-instance 
class=com.cumquatit.refapp.HivemindFixLoggingInterceptor /

   /implementation
/module


And the class to go along with it:

package com.cumquatit.refapp;

import java.util.List;

import org.apache.hivemind.InterceptorStack;
import org.apache.hivemind.ServiceInterceptorFactory;
import org.apache.hivemind.internal.Module;

public class HivemindFixLoggingInterceptor implements 
ServiceInterceptorFactory {

   @SuppressWarnings(unchecked)
   public void createInterceptor(InterceptorStack arg0, Module arg1, 
List arg2) {

   }
}


This basically does the trick.
Thanks Jesse (and I hope you refrain from taking every post coming from 
me as an insult),


-J.

(On OC4J11 Tech Preview, it is not yet working - but the error indicates 
something different than a specific Hivemind issue)



Jan Vissers wrote:

Below the trace I see, whenever Tapestry 4.1.1 tries to load
Has anybody ever tried Tapestry 4.1.1 on OC4J?

**


07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Unable to construct service tapestry.init.ApplicationSpecificationInitial
izer: Error building service 
tapestry.init.ApplicationSpecificationInitializer: Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor
factory hivemind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.S
pecificationParser as class $ISpecificationParser_112709303e6: 
argument type mismatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo 


rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Error building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN 

F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_112709303e6: argument type mi

smatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo 


rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Error building service tapestry.init.ApplicationSpecificationInitializer:
Error at 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN 

F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class 
$ISpecificationParser_112709303e6: argument type mi

smatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo 


rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Error at code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml, 
line 46, column 89: Service interceptor factory hivem
ind.LoggingInterceptor failed to create 
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationP

arser as class $ISpecificationParser_112709303e6: argument type mismatch
07/05/09 13:22:02location: 
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo 


rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89

07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
Service interceptor factory hivemind.LoggingInterceptor failed to create
org.apache.tapestry.parse.ISpecificationParser interceptor for service 
tapestry.parse.SpecificationParser as class $ISpecificationParser_112

709303e6: argument type mismatch

07/05/09 13:22:02 java.lang.IllegalArgumentException: argument type 
mismatch
07/05/09 13:22:02 

Re: Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-05-09 Thread janjonge

It seems your jar is corrupted. Try updating it.

Jan

Jan Vissers wrote:
 
 Below the trace I see, whenever Tapestry 4.1.1 tries to load
 Has anybody ever tried Tapestry 4.1.1 on OC4J?
 
 **
 
 
 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Unable to construct service tapestry.init.ApplicationSpecificationInitial
 izer: Error building service 
 tapestry.init.ApplicationSpecificationInitializer: Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
 tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  
 line 46, column 89: Service interceptor
 factory hivemind.LoggingInterceptor failed to create 
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.S
 pecificationParser as class $ISpecificationParser_112709303e6: argument 
 type mismatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21
 
 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
 building service tapestry.init.ApplicationSpecificationInitializer:
  Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
 F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class 
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21
 
 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
 building service tapestry.init.ApplicationSpecificationInitializer:
  Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
 F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class 
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67
 
 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: Error 
 at code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
 refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  
 line 46, column 89: Service interceptor factory hivem
 ind.LoggingInterceptor failed to create 
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationP
 arser as class $ISpecificationParser_112709303e6: argument type mismatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89
 
 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Service interceptor factory hivemind.LoggingInterceptor failed to create
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class $ISpecificationParser_112
 709303e6: argument type mismatch
 
 07/05/09 13:22:02 java.lang.IllegalArgumentException: argument type
 mismatch
 07/05/09 13:22:02 
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 07/05/09 13:22:02 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 07/05/09 13:22:02 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 07/05/09 13:22:02 
 java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 07/05/09 13:22:02 
 org.apache.hivemind.service.impl.LoggingInterceptorFactory.instantiateInterceptor(LoggingInterceptorFactory.java:290)
 07/05/09 13:22:02 
 org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInterceptor(LoggingInterceptorFactory.java:255)
 07/05/09 13:22:02 
 org.apache.hivemind.impl.ServiceInterceptorContributionImpl.createInterceptor(ServiceInterceptorContributionImpl.java:95)
 07/05/09 13:22:02 
 org.apache.hivemind.impl.InterceptorStackImpl.process(InterceptorStackImpl.java:116)
 07/05/09 13:22:02 
 org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.addInterceptors(AbstractServiceModelImpl.java:85)
 07/05/09 13:22:02 
 

Re: Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-05-09 Thread janjonge

Hmm, this looks and smells like a bug in Tapestry.

Jan

Jan Vissers wrote:
 
 Hi,
 
 With the help of this Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J 
 10.1.3 - Dig a little bit more, anyone please give me a ladder to climb 
 up post
 I've now got things working on 10.1.3.2
 
 Below the hivemodule.xml I created:
 
 ?xml version=1.0?
 module id=com.cumquatit.refapp version=1.0.0 
 package=com.cumquatit.refapp
 implementation service-id=hivemind.LoggingInterceptor
 create-instance 
 class=com.cumquatit.refapp.HivemindFixLoggingInterceptor /
 /implementation
 /module
 
 
 And the class to go along with it:
 
 package com.cumquatit.refapp;
 
 import java.util.List;
 
 import org.apache.hivemind.InterceptorStack;
 import org.apache.hivemind.ServiceInterceptorFactory;
 import org.apache.hivemind.internal.Module;
 
 public class HivemindFixLoggingInterceptor implements 
 ServiceInterceptorFactory {
 @SuppressWarnings(unchecked)
 public void createInterceptor(InterceptorStack arg0, Module arg1, 
 List arg2) {
 }
 }
 
 
 This basically does the trick.
 Thanks Jesse (and I hope you refrain from taking every post coming from 
 me as an insult),
 
 -J.
 
 (On OC4J11 Tech Preview, it is not yet working - but the error indicates 
 something different than a specific Hivemind issue)
 
 
 Jan Vissers wrote:
 Below the trace I see, whenever Tapestry 4.1.1 tries to load
 Has anybody ever tried Tapestry 4.1.1 on OC4J?

 **


 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Unable to construct service tapestry.init.ApplicationSpecificationInitial
 izer: Error building service 
 tapestry.init.ApplicationSpecificationInitializer: Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
 tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  
 line 46, column 89: Service interceptor
 factory hivemind.LoggingInterceptor failed to create 
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.S
 pecificationParser as class $ISpecificationParser_112709303e6: 
 argument type mismatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
  

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Error building service tapestry.init.ApplicationSpecificationInitializer:
 Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
  

 F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class 
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
  

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Error building service tapestry.init.ApplicationSpecificationInitializer:
 Error at 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN
  

 F/tapestry.init.xml, line 46, column 89: Service interceptor factory 
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class 
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
  

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Error at code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
 refapp-web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.init.xml,
  
 line 46, column 89: Service interceptor factory hivem
 ind.LoggingInterceptor failed to create 
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationP
 arser as class $ISpecificationParser_112709303e6: argument type mismatch
 07/05/09 13:22:02location: 
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-framewo
  

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException: 
 Service interceptor factory hivemind.LoggingInterceptor failed to create
 org.apache.tapestry.parse.ISpecificationParser interceptor for service 
 tapestry.parse.SpecificationParser as class 

Re: Tapestry 4.1.1 Hello World not working on Oracle 10.1.3.2.0

2007-05-09 Thread Jesse Kuhnert

I wonder if there is going to be a 1.1.2 hivemind release or should I try
applying patches and waiting for the eventual good-enough-to-commit blah
blah to eventually get some of these things fixed up?

On 5/9/07, Jan Vissers [EMAIL PROTECTED] wrote:


Hi,

With the help of this Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J
10.1.3 - Dig a little bit more, anyone please give me a ladder to climb
up post
I've now got things working on 10.1.3.2

Below the hivemodule.xml I created:

?xml version=1.0?
module id=com.cumquatit.refapp version=1.0.0
package=com.cumquatit.refapp
implementation service-id=hivemind.LoggingInterceptor
create-instance
class=com.cumquatit.refapp.HivemindFixLoggingInterceptor /
/implementation
/module


And the class to go along with it:

package com.cumquatit.refapp;

import java.util.List;

import org.apache.hivemind.InterceptorStack;
import org.apache.hivemind.ServiceInterceptorFactory;
import org.apache.hivemind.internal.Module;

public class HivemindFixLoggingInterceptor implements
ServiceInterceptorFactory {
@SuppressWarnings(unchecked)
public void createInterceptor(InterceptorStack arg0, Module arg1,
List arg2) {
}
}


This basically does the trick.
Thanks Jesse (and I hope you refrain from taking every post coming from
me as an insult),

-J.

(On OC4J11 Tech Preview, it is not yet working - but the error indicates
something different than a specific Hivemind issue)


Jan Vissers wrote:
 Below the trace I see, whenever Tapestry 4.1.1 tries to load
 Has anybody ever tried Tapestry 4.1.1 on OC4J?

 **


 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
 Unable to construct service
tapestry.init.ApplicationSpecificationInitial
 izer: Error building service
 tapestry.init.ApplicationSpecificationInitializer: Error at
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applica
 tions/refapp/refapp-web-1.0.0/WEB-INF/lib/tapestry-
framework-4.1.1.jar!/META-INF/tapestry.init.xml,
 line 46, column 89: Service interceptor
 factory hivemind.LoggingInterceptor failed to create
 org.apache.tapestry.parse.ISpecificationParser interceptor for service
 tapestry.parse.S
 pecificationParser as class $ISpecificationParser_112709303e6:
 argument type mismatch
 07/05/09 13:22:02location:
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framewo

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
 Error building service tapestry.init.ApplicationSpecificationInitializer
:
 Error at
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN

 F/tapestry.init.xml, line 46, column 89: Service interceptor factory
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service
 tapestry.parse.SpecificationParser as class
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location:
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framewo

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 42, column 21

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
 Error building service tapestry.init.ApplicationSpecificationInitializer
:
 Error at
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framework-4.1.1.jar!/META-IN

 F/tapestry.init.xml, line 46, column 89: Service interceptor factory
 hivemind.LoggingInterceptor failed to create org.apache.tapestry.parse.
 ISpecificationParser interceptor for service
 tapestry.parse.SpecificationParser as class
 $ISpecificationParser_112709303e6: argument type mi
 smatch
 07/05/09 13:22:02location:
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framewo

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 43, column 67

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
 Error at
code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/
 refapp-web-1.0.0/WEB-INF/lib/tapestry-
framework-4.1.1.jar!/META-INF/tapestry.init.xml,
 line 46, column 89: Service interceptor factory hivem
 ind.LoggingInterceptor failed to create
 org.apache.tapestry.parse.ISpecificationParser interceptor for service
 tapestry.parse.SpecificationP
 arser as class $ISpecificationParser_112709303e6: argument type mismatch
 07/05/09 13:22:02location:
 code-source:/D:/ora/ocj10_1_3_2_0/j2ee/home/applications/refapp/refapp-
web-1.0.0/WEB-INF/lib/tapestry-framewo

 rk-4.1.1.jar!/META-INF/tapestry.init.xml, line 46, column 89

 07/05/09 13:22:02 org.apache.hivemind.ApplicationRuntimeException:
 Service interceptor factory hivemind.LoggingInterceptor failed to create
 org.apache.tapestry.parse.ISpecificationParser 

hello

2007-04-22 Thread Donyee

hello

--
Chinese name:徐 依伟
English name: will


Re: hello

2007-04-22 Thread Jesse Kuhnert

stop it.

On 4/22/07, Donyee [EMAIL PROTECTED] wrote:


hello

--
Chinese name:徐 依伟
English name: will





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: hello world tutorial for tapestry 4.1 for tomcat 6 or jetty 6

2007-04-15 Thread Geoff Callender

Hi Akbar,

As of last night, JumpStart now handles 4.1, too.  I'd also suggest  
you give the JBoss environment a try - to my mind it is really worth  
it.  And don't forget the Tips page on the JumpStart website.


Regards,

Geoff

On 14/04/2007, at 2:59 PM, Akbar wrote:


Hi,

Any one know where to find hello world tutorial for tapestry 4.1 for
tomcat 6.0 or jetty 6.1? I mean for developing not deployment. I can
not find one in internet. I know Java well but not servlet container
and something like that.

The jumpstart project is interesting.
http://files.doublenegative.com.au/jumpstart/
But it is still for tapestry 4.0 and hey, I don't want to download
80MB JBoss files to use tapestry framework. Just tomcat or jetty
please.

Thank you.

-
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: hello world tutorial for tapestry 4.1 for tomcat 6 or jetty 6

2007-04-15 Thread Renat Zubairov

Hi

You can also have a look on the Tapestry archetypes:

http://tapestryjava.blogspot.com/2007/02/maven-archetype-for-tapestry-4.html

And here:

http://www.webtide.com/resources.jsp

Also you can have a look on the AppFuse:

http://appfuse.org/display/APF/AppFuse+QuickStart

Renat

On 16/04/07, Geoff Callender [EMAIL PROTECTED] wrote:

Hi Akbar,

As of last night, JumpStart now handles 4.1, too.  I'd also suggest
you give the JBoss environment a try - to my mind it is really worth
it.  And don't forget the Tips page on the JumpStart website.

Regards,

Geoff

On 14/04/2007, at 2:59 PM, Akbar wrote:

 Hi,

 Any one know where to find hello world tutorial for tapestry 4.1 for
 tomcat 6.0 or jetty 6.1? I mean for developing not deployment. I can
 not find one in internet. I know Java well but not servlet container
 and something like that.

 The jumpstart project is interesting.
 http://files.doublenegative.com.au/jumpstart/
 But it is still for tapestry 4.0 and hey, I don't want to download
 80MB JBoss files to use tapestry framework. Just tomcat or jetty
 please.

 Thank you.

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





--
Best regards,
Renat Zubairov

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



hello world tutorial for tapestry 4.1 for tomcat 6 or jetty 6

2007-04-13 Thread Akbar

Hi,

Any one know where to find hello world tutorial for tapestry 4.1 for
tomcat 6.0 or jetty 6.1? I mean for developing not deployment. I can
not find one in internet. I know Java well but not servlet container
and something like that.

The jumpstart project is interesting.
http://files.doublenegative.com.au/jumpstart/
But it is still for tapestry 4.0 and hey, I don't want to download
80MB JBoss files to use tapestry framework. Just tomcat or jetty
please.

Thank you.

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



Hello world portlet

2006-07-14 Thread Julio C. Rivera

Hi!

I'm new in portlets. I'm trying to develop a Hello World portlet using
Tapestry.

When I deploy my hello world portlet in jetspeed I get this portlet content:

   org.apache.tapestry.PageNotFoundException

   Page 'View' not found in application namespace.

  - org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
  PageSpecificationResolverImpl.java:140)
  -
  
$PageSpecificationResolver_10c6cbde6ef.resolve($PageSpecificationResolver_10c6cbde6ef.java)
  -
  
$PageSpecificationResolver_10c6cbde6f0.resolve($PageSpecificationResolver_10c6cbde6f0.java)
  - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:115)

 ..



Here my config files:

***
WEB-INF/web.xml
***
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 display-nameapp/display-name
 servlet
   servlet-namegapmuportlet/servlet-name
   servlet-classorg.apache.tapestry.ApplicationServlet/servlet-class
 /servlet
 servlet-mapping
   servlet-namegapmuportlet/servlet-name
   url-pattern/app/url-pattern
 /servlet-mapping
/web-app


WEB-INF/portlet.xml
*
portlet-app version=1.0
 xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 portlet
   description xml:lang=EN/description
   portlet-nameGapmuportlet/portlet-name
   display-name xml:lang=ENMy Tapestry Portlet/display-name
   portlet-classorg.apache.tapestry.portlet.ApplicationPortlet
/portlet-class
   expiration-cache-1/expiration-cache
   supports
 mime-typetext/html/mime-type
 portlet-modeview/portlet-mode
   /supports
   supported-localees/supported-locale
   portlet-info
 titleMy Tapestry Portlet/title
 short-titletapestry-portlet/short-title
 keywords/keywords
   /portlet-info
 /portlet
/portlet-app

***
WEB-INF/gapmuportlet/View.html
***
h1Hello World!!/h1


Somebody have some tapestry portlet example?

Thanks in advance.

 Julio.


Re: Hello world portlet

2006-07-14 Thread Mitchell O'Brien

Hi,

Do you have a View.page file?

Cheers,
Mitch

On 14.07.2006, at 13:29, Julio C. Rivera wrote:


Hi!

I'm new in portlets. I'm trying to develop a Hello World portlet using
Tapestry.

When I deploy my hello world portlet in jetspeed I get this portlet  
content:


   org.apache.tapestry.PageNotFoundException

   Page 'View' not found in application namespace.

  -  
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(

  PageSpecificationResolverImpl.java:140)
  -
  $PageSpecificationResolver_10c6cbde6ef.resolve 
($PageSpecificationResolver_10c6cbde6ef.java)

  -
  $PageSpecificationResolver_10c6cbde6f0.resolve 
($PageSpecificationResolver_10c6cbde6f0.java)
  - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java: 
115)


 ..



Here my config files:

***
WEB-INF/web.xml
***
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 display-nameapp/display-name
 servlet
   servlet-namegapmuportlet/servlet-name
   servlet-classorg.apache.tapestry.ApplicationServlet/servlet- 
class

 /servlet
 servlet-mapping
   servlet-namegapmuportlet/servlet-name
   url-pattern/app/url-pattern
 /servlet-mapping
/web-app


WEB-INF/portlet.xml
*
portlet-app version=1.0
 xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet- 
app_1_0.xsd

http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 portlet
   description xml:lang=EN/description
   portlet-nameGapmuportlet/portlet-name
   display-name xml:lang=ENMy Tapestry Portlet/display-name
   portlet-classorg.apache.tapestry.portlet.ApplicationPortlet
/portlet-class
   expiration-cache-1/expiration-cache
   supports
 mime-typetext/html/mime-type
 portlet-modeview/portlet-mode
   /supports
   supported-localees/supported-locale
   portlet-info
 titleMy Tapestry Portlet/title
 short-titletapestry-portlet/short-title
 keywords/keywords
   /portlet-info
 /portlet
/portlet-app

***
WEB-INF/gapmuportlet/View.html
***
h1Hello World!!/h1


Somebody have some tapestry portlet example?

Thanks in advance.

 Julio.




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