Re: Merits of Tapestry-IOC

2013-05-21 Thread Inge Solvoll
I love Tapestry IOC. When used in a very basic way, it's almost
indistinguishable from Guice. Actually it's less intrusive since you don't
need annotations for injection.

Tapestry is very powerful when you do more advanced stuff, and I just love
that the power's there even though I don't use it that much.

"Why doesn't everyone use X if it's so great?"
"Why don't you use the standard?"

These questions wrongly assume that standards are always a good thing, and
that standards are of high quality. And that the companies funding these
standards are acting in your best interest, not in their own :)


On Thu, May 16, 2013 at 7:01 PM, Lenny Primak wrote:

> I don't think neither I nor hantsy have any realistic action items that
> will possibly be implemented,
> simply because the maintainers have too much stake in the status quo.
> There is nothing wrong with that.  It is legitimate to protect your
> investment,
> especially if you making a living off of it.  I would do the same thing.
> There were legitimate reasons at the time to make decisions that were made,
> at least most of them.
>
> But, the landscape changed.  Now there are better, simpler, more popular
> choices
> in IOC than Tapestry-IOC, and I would prefer a world without Tapestry-IOC.
> I can attest that there is some NIH thing going on in Tapestry-world as
> well.
> There are words like "code dumping" or "not enough tests" or something else
> that is used as an excuse to re-implement something that's already working
> in a different way, but this never applies to code that goes into Tapestry
> every day.
>
> I admit, my biggest pet peeve is code duplication.  I would take 50%
> functionality
> from someone else other than develop 100% on my own, even if it isn't
> exactly
> 100% exact way I would do it.  I find a way to work with a other people's
> products,
> not trying to re-create the whole stack.
>
> Standards?  The excuse that standards stifle innovation is so "Microsoft"
> Standards in no way stifle innovation.  Where would we be without
> standardized electricity?  TCP/IP? etc.
>
> Backward compatibility?  Also, this is used a lot as an excuse.
> Perhaps the templates are backward-compatible, at best.
> IOC code has never been compatible from one version to the next.
> I even had to change code from 5.3.1 to 5.3.2
>
>
> Why do I like tapestry?  Well let's discuss the features.
>
> - Template language.  Can be read in DreamWeaver and other tools, can be
> handed off to designers and then taken back.
> This is #1 feature of Tapestry for me.  No other framework comes close to
> this level of consistency
> Con:  HTML5 isn't really XML-compliant, so as tools go more HTML5 they
> will lose their XML compliant features and
> TML editing with those tools will start failing over time.
>
> - Zones / JavaScript integration
> Love the fact that I don't have to touch JavaScript for most tasks.
>
> - Component Model.  I do like the component model.  Perhaps not internally
> (due to IOC)
> but the way its structured, i.e. pages/components/mixins.
>
> Neutral:
> - live class reloading. Glassfish redeploy is very fast, so I don't even
> use live class reloading
> - Hibernate / JPA integration.  I use EJB/CDI layers to do this processing
>
> Negative:
> - Tapestry-IOC
> At the very least, dynamic configuration should be factored out and
> disconnected from the IOC part.  Then perhaps replaced with an
> off-the-shelf tool.
>
> On May 16, 2013, at 1:45 AM, Dmitry Gusev wrote:
>
> > I'm not getting what are you trying to say. Is it "lets replace
> > tapestry-ioc with some other ioc"?
> > Or "lets implement proper CDI support"?
> >
> >> If you are implying that this is all so important, why isn't every
> > project on the planet using Tapestry-IOC?
> >
> >> I would be very happy using the Web Framework without Tapestry-IOC,
> using
> > just plain beans for configuration,
> > or even using CDI events to gather configuration.
> >
> > I understand this is a rhetorical statements, but isn't every Tapestry5
> > application on the planet uses tapestry-ioc?
> >
> > How would you use tapestry5 the web framework without its ioc?
> >
> > I mean what do you like in tapestry5 the web framework if its not ioc?
> >
> > I doubt you like its template language, because its not something unique.
> > What then? Component model? Just curious.
> >
> > I know I'm advanced tapestry5 user because I use it since 2005 everyday
> > non-stop and since version 3.
> > I understand its concepts well and I may be just forgot how hard was it
> to
> > learn tapestry-ioc...
> > this seems very easy to me now (at least those parts that are used in
> > tapestry5 the web framework) and I can't imagine whats that hard to learn
> > in it.
> > Maybe if you still remember it and describe this here somewhere - then we
> > may improve documentation?
> >
> > On Thu, May 16, 2013 at 6:23 AM, hantsy  wrote:
> >
> >>
> >>> As I said in another thread, you're suggesting replacing Tapestry-IoC
> >>> with CDI. If

Re: Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
Thanks for helping me so quickly! :) As always :)

I guess I would have to try to implement a service that does this then. A
service that looks kind of like this:

public interface SetterInjector {
  void injectInto(Object instance);
}

And an implementation like this:

public class SetterInjectorImpl implements SetterInjector {
   private final ObjectLocator objectLocator;

   ...constructor with deps...

   public void injectInto(Object instance) {
  Method[] setters = getAllSetters(instance)
  for (Method setter:setters) {
 Object service =
objectLocator.getService(getClassForSetter(setter))
 setter.invoke(service)
  }
   }
}

Again, I'm surprised, I thought I remember seeing something like this in
the Tapestry source code somewhere. I'm probably wrong though.




On Mon, Aug 13, 2012 at 2:45 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, 13 Aug 2012 09:31:55 -0300, Inge Solvoll 
> wrote:
>
>  So there doesn't exist an exposed API in tapestry for finding setters
>> that match services by type and invoke them runtime on non-tapestry-managed
>> instances?
>>
>
> Good question . . . Well, for part of it, you can inject ObjectLocator and
> use its getService() methods to get a service from the Tapestry-IoC
> registry. The setter part looks like something that some reflection code
> could do relatively easily.
>
>
> --
> Thiago H. de Paula Figueiredo
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
That might work in some cases yes.

The case I'm looking at right now is a service that returns a list of
objects, where the objects are produced by some other framework on the fly.
So I need to inject dependencies into these objects before returning them
from my service method. Some code:

public class MyActionsProvider {
   public Action[] getActions() {
  return Utilities.getActionsForPath("my/path/here")
  }
}
The dependencies for these objects are theoretically unknown, either way
potentially a lot of dependencies, so not very nice injecting them all into
my service and very clumsy invoking setters for each Action.

So there doesn't exist an exposed API in tapestry for finding setters that
match services by type and invoke them runtime on non-tapestry-managed
instances?


On Mon, Aug 13, 2012 at 2:18 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, 13 Aug 2012 09:13:50 -0300, Inge Solvoll 
> wrote:
>
>  Hi!
>>
>
> Hi!
>
> Why don't you declare these objects as Tapestry-IoC services using a build
> method in your module class?
>
> SomeClass buildSomeClass(Dependency1 dependency1, Dependency2 dependency2)
> {
> SomeClass object = ...; // get the object somehow.
> object.setDependency1(**dependency1);
> object.setDependency2(**dependency2);
> return object;
> }
>
> --
> Thiago H. de Paula Figueiredo
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Manually injecting dependencies after construction

2012-08-13 Thread Inge Solvoll
Hi!

I'm working on some classes (using Tapestry IOC in a java non-web client
environment). I have some classes that I really want to do DI style, but
I'm not able to control their instantiation due to how some other framework
is doing things. So, constructor-based injection is not an option.

What I do have, is an opportunity to go through these objects just after
they have been instantiated. At that point, it would be nice to inject the
dependencies through setter methods, using some "injection" service that
takes an instance and invokes any setters that match service classes, like
this:

instanceInjector.injectInto(myManuallyInstantiatedInstance).

I was pretty sure this could be done in Tapestry, but I can't seem to find
the service in tapestry-ioc that does it. Do any of you guys have pointers?

Thanks :)

Inge


Re: Java Magic has 10000+ hits

2011-07-12 Thread Inge Solvoll
This kind of blogging effort is tremendously important for tapestry's
position in the market. Frequent high quality articles on dzone might
be the most important thing that has happened to this framework for a
long time. Good job! Please write more.

We need more people to do this as well :)

On Wednesday, June 29, 2011, Taha Tapestry  wrote:
> Hi
>
> It has been a great experience and it is mostly because of this great 
> community.
>
> When you have such a polite community where you won't be hammered for your 
> naive and at times irrelevant questions,
> Where you have the creator following you only after your 3rd post and 
> pointing out mistakes, where you get an answer with a code example, where 
> people are not only telling you how to make things work but also how to do 
> things rightly then writing a blog is real fun
>
> There is a lot to follow at Java Magic
>
> Thanks & Regards
> Taha
>
> On Jun 29, 2011, at 6:30 PM, Michael Gentry  wrote:
>
>> Google Reader says you have over 30 subscribers (at least in Google Reader).
>>
>> mrg
>>
>>
>> On Wed, Jun 29, 2011 at 12:10 AM, Mark  wrote:
>>> If I remember correctly, Wordpress.com uses javascript to count views,
>>> so it won't count things when someone's RSS reader just checks for an
>>> updated feed.
>>>
>>> Mark
>>>
>>> On Tue, Jun 28, 2011 at 6:07 PM, Taha Tapestry  
>>> wrote:
>>>> Then may be all of these hits are really rss feeds and wordpress is 
>>>> keeping me happy :(
>>>>
>>>> But it is great to know that you guys read my blog.
>>>>
>>>> Regards
>>>> Taha
>>>>
>>>> On Jun 28, 2011, at 10:25 PM, Guerin Laurent  
>>>> wrote:
>>>>
>>>>> Me too :-)
>>>>>
>>>>> Envoyé de mon iPhone
>>>>>
>>>>> Le 28 juin 2011 à 18:37, "Andreas Andreou"  a écrit :
>>>>>
>>>>>> wp stats must be wrong - i'm defitively the other one!
>>>>>>
>>>>>> On Tue, Jun 28, 2011 at 19:34, Inge Solvoll  
>>>>>> wrote:
>>>>>>> I'm the other one. Nice to meet you :)
>>>>>>>
>>>>>>> On Tuesday, June 28, 2011, dragan.sahpas...@gmail.com
>>>>>>>  wrote:
>>>>>>>> I have you on my rss reader.
>>>>>>>> I'm I the only one?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Dragan Sahpaski
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jun 28, 2011 at 9:20 AM, Taha Hafeez 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Thank God I have only 1 :)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins  
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Do you know what your uniques are, were those browser or rss reader
>>>>>>>>>> requests?  If you had 133 people who added your rss to their rss 
>>>>>>>>>> reader,
>>>>>>>>>> assuming it only fetched from your feed once a day that would be 
>>>>>>>>>> about
>>>>>>>>> 130
>>>>>>>>>> people :-{
>>>>>>>>>>
>>>>>>>>>> Best
>>>>>>>>>>
>>>>>>>>>> C
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Jun 27, 2011, at 11:50 PM, Taha Hafeez wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi
>>>>>>>>>>>
>>>>>>>>>>> More than 1 hits in two and a half months, not bad.
>>>>>>>>>>>
>>>>>>>>>>> regards
>>>>>>>>>>> Taha
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -
>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>>>>>>> For additional commands, e-mail:

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



Re: Java Magic has 10000+ hits

2011-06-28 Thread Inge Solvoll
I'm the other one. Nice to meet you :)

On Tuesday, June 28, 2011, dragan.sahpas...@gmail.com
 wrote:
> I have you on my rss reader.
> I'm I the only one?
>
> Cheers,
> Dragan Sahpaski
>
>
>
> On Tue, Jun 28, 2011 at 9:20 AM, Taha Hafeez wrote:
>
>> Thank God I have only 1 :)
>>
>>
>> On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins  wrote:
>>
>> > Do you know what your uniques are, were those browser or rss reader
>> > requests?  If you had 133 people who added your rss to their rss reader,
>> > assuming it only fetched from your feed once a day that would be about
>> 130
>> > people :-{
>> >
>> > Best
>> >
>> > C
>> >
>> >
>> > On Jun 27, 2011, at 11:50 PM, Taha Hafeez wrote:
>> >
>> > > Hi
>> > >
>> > > More than 1 hits in two and a half months, not bad.
>> > >
>> > > regards
>> > > Taha
>> >
>> >
>> > -
>> > 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: Unit testing mixins

2011-06-17 Thread Inge Solvoll
As long as your JS code is clean with low coupling, I think the best
solution is to do pure JS testing.

I've done a lot of this. Used Jasmine BDD for testing the javascript code.
Very nice testing framework that works both in the browser and headless,
from Jenkins/Hudson.

http://pivotal.github.com/jasmine/

http://cjohansen.no/en/javascript/test_driven_javascript_done_right

http://skaug.no/ingvald/2010/10/javascript-unit-testing.html

On Thu, Jun 16, 2011 at 4:09 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Thu, 16 Jun 2011 08:43:28 -0300,  wrote:
>
>  Hi all,
>>
>
> Hi!
>
>
>  We are converting most of our JavaScript code in our Tapestry applications
>> into mixins, and I was wandering if anyone can recommend a testing framework
>> / methodology for unit testing these mixins.
>>
>
> I use JUnit (it could be TestNG or any other similar framework) + Selenium.
> I create a page using the given mixin and test it. This isn't an unit test:
> it's an integration one, but it does the work, specially when there's
> JavaScript involved.
>
> --
> 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-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Simpler Select configuration

2011-06-08 Thread Inge Solvoll
Thanks for great responses to my thoughts.

I have some ideas myself about AJAX stuff for Select, will try to make time
to blog about it. I don't work with this stuff anymore, so it's harder to
find the time :)

On Mon, Jun 6, 2011 at 2:56 PM, LLTYK  wrote:

> Whatever the solution is for making this simpler, it'd be nice if it came
> with Tapestry by default.
>
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Simpler-Select-configuration-tp6421890p6444986.html
> Sent from the Tapestry Users 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
>
>


Simpler Select configuration

2011-05-31 Thread Inge Solvoll
Hi!

In my new job I've worked a lot with Swing GUI code. I immediately saw the
strong need for a framework, in order to provide better abstractions, events
and data binding between GUI and the model layer. The framework market for
Swing applications is very close to dead, but I found a decent dead
framework that could be resurrected, named Genesis. After working with it
for a couple of months, I can see very clear similarities with Tapestry on
several concepts:

- POJO controller instrumented by annotations.
- Seamless client event binding.
- Convention over configuration: Model properties are mapped to GUI controls
with the same name
- Automatic type coercion between model and GUI
- Swing code is isolated and simplified, even more so than T5 templates

Enough off topic :)

When working with T5, one of the (very few) things that I found sub-optimal
is the Select component. You have to implement 2 interfaces, and it requires
extra work when dealing with AJAX, which is a very common requirement. In
Genesis, it is done like the example below. Methods that provide content for
Select boxes are annotated with @DataProvider. If a Select is dependent on
some change in the GUI, the data provider method can be annotated with
@CallWhen to refresh the list when some property on the controller changes.

I would really like to see something similar in T5, allowing the developers
to specify a collection and a property, without using the T5 custom models
for Selects. Also, providing AJAX refresh of the content of a Select,
without exposing AJAX plumbing. I'm thinking the opposite of the zone
support introduced, allowing a refresh something else. I would like the
Select to refresh itself on some condition. Please see examples below.


public class MyGuiPanel extends JPanel {
   private javax.swing.JComboBox mySelect;
   private javax.swing.JComboBox dependsOnMySelect;
}

public class MyGuiPanelController {

  private MyDomainObject someProperty;
  private MyDomainObject someOtherProperty;

  @DataProvider(widgetId="mySelect", property="someProperty")
  public List getProperties() {
return db.getProperties();
  }

  @CallWhen("genesis.hasChanged('form:someProperty')")
  @DataProvider(widgetId="dependsOnMySelect", property="someOtherProperty")
  public List getOtherProperties() {
return db.getProperties();
  }
}



Example ideal T5 code for this:

public class MyPage {

  @Component(parameters="value=someProperty, list=properties")
  private Select mySelect;

  @Component(parameters="value=someOtherProperty, list=otherProperties,
listenForChangesTo=someProperty")
  private Select mySelect;
}


Leaving the tapestry community

2011-03-28 Thread Inge Solvoll
Hi!

In a couple of weeks, I'm leaving my current employer. You probably won't
hear from me for a while, since my new employer isn't into web development
yet. But they might be soon. In that case, I hope to bring T5 to the table
like I have done in my current job. If I manage to do that, it's a
win-win-win situation: Me, my employer and the tapestry community wins.

Wish me luck :)


Re: [ANN] Tapestry 5 in Action MEAP started

2011-03-23 Thread Inge Solvoll
Loving it!

My company will definitely be buying a copy or two :)

On Wed, Mar 23, 2011 at 9:15 PM, Martin Strand <
do.not.eat.yellow.s...@gmail.com> wrote:

> On Wed, 23 Mar 2011 20:10:28 +0100, Igor Drobiazko <
> igor.drobia...@gmail.com> wrote:
>
> Dear all,
>>
>> I'm pleased to announce that the long awaited Tapestry 5 in Action book is
>> available through MEAP now.
>>
>> For more details read here:
>>
>>
>> http://blog.tapestry5.de/index.php/2011/03/23/tapestry-5-in-action-meap-started/
>>
>
>
> Great news, I just ordered a copy!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: New ZoneUpdater

2011-03-16 Thread Inge Solvoll
After applyting GOT5 tapestry-jquery in our project, ZoneUpdater was broken.
So I did some work to jQuerify it, and here it is:

http://tinybits.blogspot.com/2011/03/zoneupdater-jquery-edition.html

On Fri, Mar 5, 2010 at 9:14 AM, Inge Solvoll wrote:

> Hi!
>
> http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html
>
> This week I needed more from the ZoneUpdater than it was able to deliver.
> So I decided to rewrite it to support the new feature, cleaning it up in the
> process. Please review my changes and tell me what you think :)
>
> Anyone is welcome to suggest code that would make this mixin more usable
> and feature complete. Like support for multi zone update.
>
> Let's remind everyone of the JIRA once more. It's a bit dated, I've learned
> a lot since then and I think some work has been done by the committers, but
> we still need a more flexible client API.
>
> https://issues.apache.org/jira/browse/TAP5-521
>


Re: 10 Minute Web Application Demo

2011-02-17 Thread Inge Solvoll
Nice work, Mark!

I have some feedback for you here:

Tapestry is great because it enables me to work tiny iterations. These tiny
iteratinos are enabled by live reloading and excellent error reporting. I
use this to work in a TDD way (without actually doing TDD), adding one bit
at a time and verifying its behaviour in the browser before continuing.
Being used to that, I was a bit overwhelmed by your speed in this tutorial,
adding lots of things before reloading in the browser. That approach might
work very well for you, but probably not for beginners.

I believe a lot of people out there are used to quite long development
cycles. They are used to coding lots of lines before restarting the server
and checking the GUI. Upon arrival in the T5 world, it might be hard to
adjust quickly. Sure, everyone loves live class reloading and it works
instantly. But do they understand how to get the full power out of it? I'll
give a (hopefully understandable) example:  If you ask your grandmother to
send you an email, she might print it, put it in an envelope and go for a
walk to the post office. Not what you intended when you provided her with
the very effective tools necessary :)

Don't get me wrong, I love this tutorial! Just wanted to write a few words
about how I feel T5 could gain more popularity.  Highly efficient tools
aren't enought, we should also focus on showing a set of simple and
simplifying techniques that makes it very hard to fail and very much fun to
be a T5 programmer. Also for newbies :)

On Thu, Feb 17, 2011 at 9:46 AM, Peter Stavrinides <
p.stavrini...@albourne.com> wrote:

> :) Excellent Mark! I know the feeling... does she also give the blank
> expression?
>
> - Original Message -
> From: "Mark" 
> To: "Tapestry users" 
> Sent: Wednesday, 16 February, 2011 23:25:47 GMT +02:00 Athens, Beirut,
> Bucharest, Istanbul
> Subject: Re: 10 Minute Web Application Demo
>
> I keep showing my wife, but she doesn't ever seem to get very excited
> about it. :)
>
> On Wed, Feb 16, 2011 at 2:27 PM, Michael Gentry 
> wrote:
> > Sure, but I don't general show people Tapestry 5 at home.  I'll bet
> > most of us don't do that, either.  :-)
> >
> > mrg
> >
> >
> > On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel
> >  wrote:
> >> don't you have internet at home? :p
> >>
> >>
> >> Am 16.02.2011 um 19:54 schrieb Michael Gentry:
> >>
> >>> That's not an option for some of us, either.  :-)
> >>>
> >>>
> >>> On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak 
> wrote:
>  That's what the your mobile device is for :)
> 
>  On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote:
> 
> > Hi Mark,
> >
> > Keep in mind that a lot of companies block YouTube access (and other
> > media sites), so putting it on YouTube might actually restrict access
> > more than you intended.
> >
> > mrg
> 
> 
>  -
>  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
> >>
> >>
> >
> > -
> > 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: Struggling with Ajax in T5 ...

2011-01-30 Thread Inge Solvoll
Hi!

I haven't read all of this thread, but I have one suggestion: You should
"hijack" your onclick handlers with javascript to do additional work before
or after calling the original onclick. Don't know how experienced you are
with javascript, but it will look something like this:

var oldOnclick = firstButton.onclick;
firstButton.bind('click', myOwnOnclickListener);
var myOwnOnClickListener = function(event) {
  // My own code here
  oldOnclick();
}


On Fri, Jan 28, 2011 at 6:30 PM, Jessica Sobieski <
jessica.sobie...@gmail.com> wrote:

> Hi Thiago -
>
> > Which buttons? I'm not following you.
>
> To answer your question, I'm talking about these buttons in my template:
>
> Student Registration
> 
> 
> 
>
> These input buttons come from an HTML stored in a database. I can't change
> that design, and these buttons must call register(studentId) javascript
> function.
>
> So what kind of JavaScript code can I use to connect register(studentId)
> function with the page class registerStudent method?
>
> Adam
>
> On Fri, Jan 28, 2011 at 10:34 AM, Thiago H. de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
> > On Fri, 28 Jan 2011 13:57:16 -0200, Jessica Sobieski <
> > jessica.sobie...@gmail.com> wrote:
> >
> >  Hello boys!
> >>
> >
> > Hi!
> >
> >
> >  1) I don't control how buttons are generated, therefore they must call
> >> register(studentId) javascript. No way around it.
> >>
> >
> > Which buttons? I'm not following you.
> >
> >
> >>public String getStudent() {
> >>return student.getName();
> >>}
> >> }
> >>
> >> Here is my question:
> >>
> >> 2) I must somehow call Tapestry from register(studentId) method. I am
> >> both, clueless and frustrated as to how to do it.
> >>
> >
> > Just ask us. :)
> >
> > Define an event name for it. My example will use "register". Use the
> > JavaScript code in
> > http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html to
> > correctly handle zone updates. Use a query parameter to pass information.
> > Your code will look like this (not tested):
> >
> >
> > public class StudentCourse {
> >
> >@Inject @Id("confirmation") private Block confirmationBlock;
> >
> >@Inject private StudentDao studentDao;
> >
> >private Student student;
> >
> >@OnEvent("register") // without this annotation,
> >Object registerStudent(@RequestParameter("id") Integer studentId) {
> >
> >student = studentDao.register(studentId);
> >return confirmationBlock;
> >}
> >
> >public String getStudent() {
> >return student.getName();
> >}
> > }
> >
> > This is probably a not complete solution, but at least I gave you some
> > hints. :) I hope it helps.
> >
> > --
> > 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: Discussion

2010-12-26 Thread Inge Solvoll
My company uses T5 for most of its software modules. We have more than 100
000 paying custumers. Works great and is great fun!

On Wed, Dec 22, 2010 at 7:18 AM, Chuck Kring  wrote:

> For what it's worth, Tapestry provides an embedded user interface for a
> medical device.
>
> We received FDA 510k clearance last fall and are working on the final
> details before our 1.0 release.
>
> This is deployed on a Linux appliance and mostly consists of Jetty,
> Tapestry, HSQLDB, Chenillekit, Spring-tapestry-security, JFreechart and
> JasperReports.Every instance of this product will provide services for
> all of the staff in a nursing home as well as collect data from every bed.
>
> There are not a lot of users per facility, but the user interface has a
> number of Ajax-enabled dashboards that have to stay alive, unattended, 7/24.
>   I hope this qualifies as a 'serious project'.
>
> We've found Tapestry to be very reliable and once you get up the learning
> curve it is a very effective development environment.   Personally I don't
> care what Howard looks like because his code looks great
>
> Chuck Kring
> www.wirelessmedcare.com
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Autocomplete mixin - Ajax request path

2010-12-16 Thread Inge Solvoll
I believe the code that generates the link you're talking about is on line
150 of AutoComplete.java in T5.2.4.


Link link = resources.createEventLink(*EVENT_NAME*);


By doing a little bit of digging from there, I found that the
(internal) service LinkSource does the hard work. I'm not the right person
to say what's possible with internal services. But if it's possible, you
could do an decoration/override/advice of that service and do some neat
tricks there.

This is the beauty of tapestry, you can usually find the source of most
information within a couple of clicks in eclipse, and the code is most often
very readable because of the clear separation of concerns between services.


On Wed, Dec 15, 2010 at 2:53 PM, Michael Bayer
wrote:

>  Hi there!
>
> I have a tapestry powered site running behind an HTTP-Proxy that hides the
> glassfish instance from the user.
> Unfortunately it also hides the web-app context root:
>
> http://doma.in:8080/contextRoot/page becomes http://doma.in/page
>
> This causes a whole lot of problems, most of which I managed to fix (I use
> an AssetPathConverter for example), but I wasn't able to find a way to
> change the request path of the autocomplete mixin's ajax requests, the path
> always contains the context root (but not hostname and port).
>
> Is there a way to change the request path of those ajax requests?
>
>
> Tapestry version: 5.2
>
> --
> Michael Bayer
> Software Developer
>
> Gameforge Productions GmbH
> Albert-Nestler-Straße 8
> D-76131 Karlsruhe
>
> Tel. +49 721 354 808-0
> Fax  +49 721 354 808-152
>
> michael.ba...@gameforge.de
>
> http://www.gameforge.de
>
> Amtsgericht Mannheim, HRB 701682
> USt-ID: DE 254 298 652
>
> Geschäftsführer: Alexander Rösner, Christoph Jennen
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: TDD with Tapestry 5.2 how to mock Logger and Messages

2010-12-07 Thread Inge Solvoll
You can mock services with Testify.

On Mon, Dec 6, 2010 at 7:46 PM, Igor Drobiazko wrote:

> I'm wondering why you want to define any expectations on Logger. However,
> when using the PageTester you can't mock services as they are retrieved
> form
> the registry which is created from your modules. You could try to provide
> an
> additional "TestModule" which is used only in that particular test. In this
> module you can try to decorate, advise or override your services for
> testability. But again, I see logs as a noise which I don't want to test
> against.
>
> 2010/12/6 Kiss Izolda 
>
>  > Hi Igor,
> >
> > We are using Tapestry's built-in testing facilities and have rendered the
> > page (tester.renderPage("MyPage"))
> > We don't necessary need to mock the org.slf4j.Logger, what we need is to
> > unit test whether the page calls the org.slf4j.Logger or not.
> >
> > thank you,
> >
> > Izolda
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>  --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
>


Re: A Simple TabPanel

2010-11-27 Thread Inge Solvoll
Nice example, thank you!

On Sat, Nov 27, 2010 at 5:20 AM, Taha Hafeez wrote:

> Does it support configurable ajax, javascript and action link...(get)
> requests ?
>
> regards
> taha
>
>
> On Sat, Nov 27, 2010 at 9:34 AM, ael  wrote:
>
> >
> > Also
> >
> > http://lombok.demon.co.uk/tapestry5Demo/test/components/tabdemo
> >
> > from
> > http://lombok.demon.co.uk/tapestry5Demo/
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/A-Simple-TabPanel-tp3281532p3282139.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: Any good tapestry5 plugin for eclipse

2010-11-25 Thread Inge Solvoll
This one is very helpful for creating templates and switching between
template and java. It's also pretty much the only useful T5 eclipse plugin.

http://code.google.com/p/loom-t5/

On Thu, Nov 25, 2010 at 3:49 PM, Taha Hafeez wrote:

> Hi
>
> Is there any good tapestry5 plugin for eclipse.
>
> regards
> Taha
>


Re: Disabling submit button after click

2010-11-23 Thread Inge Solvoll
Easy:

Create a mixin that:
- uses javascript to apply "disabled"-looking css styles when clicking the
button
- hooks a javascript handler to the button that cancels future submits.
- on AJAX return, revert 2 previous actions from a javascript listener.

On Tue, Nov 23, 2010 at 12:56 PM, Hugo Palma  wrote:

> I would like to disable a form submit button after click in order to avoid
> multiple clicking.
> This can easily be done by calling "this.disabled = true" on the onclick
> event of the button but this also prevents the submit event from executing.
>
> I could do "this.disabled = true;form.submit()" but in my case i have an
> ajax form with the zone parameter and the form.submit() forces the "normal"
> submit with full page reload.
> So, any idea how i can disable the submit button and not cancel the ajax
> form submit ?
>
> Thanks,
> Hugo
>
> --
>
> LinkedIn 
> Twitter
>


Re: Tapestry Web Site Updated

2010-11-21 Thread Inge Solvoll
Amazing news!

Will spend the next week reading the new stuff :)

On Sat, Nov 20, 2010 at 2:02 PM, Kevin Crenshaw wrote:

> unsubscribe
>
>
> On 11/20/10 7:57 AM, Juan E. Maya wrote:
>
>> Very nice ! Congratulations to the tapestry team and thank you for making
>> java web development fun again!
>> On 20 Nov 2010 10:51, "Joost Schouten (mailing lists)"<
>> joost...@jsportal.com>  wrote:
>>
>>> Quick comment: the link to wooki on the homepage is broken. The URL
>>> should be http://wookicentral.com/ right?
>>>
>>> Cheers,
>>> Joost
>>>
>>>
>>> On Sat, Nov 20, 2010 at 10:15 AM, Ulrich Stärk  wrote:
>>>
 For obvious reasons not everyone can change it. Only Tapestry committers

>>> and people who signed an ICLA can.
>>
>>> Am 20.11.2010 um 04:37 schrieb Kalle Korhonen>>>
>>> :
>>>
 On Fri, Nov 19, 2010 at 6:38 PM, nille hammer
>   wrote:
>
>> Hi Howard,
>> just a minor error. On the index page (
>>
> http://tapestry.apache.org/index.html) the paragraph "Tapestry is ...
>> scalable" occurs twice with slightly different content. (Or was that on
>> purpose? :-)) ) Thanks for the great work, nillehammer
>>
>>> It's a wiki, *you* can fix it.
>
> Removed the first occurrence since its content was included in the
> second entry and I think the order makes more sense this way. Great
> job Howard&  the gang, wish I had more time to contribute.
>
> Kalle
>
>
>  - original Nachricht 
>>
>> Betreff: Tapestry Web Site Updated
>> Gesendet: Fr, 19. Nov 2010
>> Von: Howard Lewis Ship
>>
>>  We're still working out the kinks ... and I've been working hard on
>>> revising
>>> the tutorial ... but at long last, we're debuting the new Tapestry
>>> Web
>>> Site:
>>>
>>> http://tapestry.apache.org/
>>>
>>> Feedback is encouraged; just post to users@tapestry.apache.org with
>>>
>> [SITE]
>>
>>> in the subject.
>>>
>>> --
>>> Howard M. Lewis Ship
>>>
>>> Creator of Apache Tapestry
>>>
>>> The source for Tapestry training, mentoring and support. Contact me
>>> to
>>> learn
>>> how I can get you up and productive in Tapestry fast!
>>>
>>> (971) 678-5210
>>> http://howardlewisship.com
>>>
>>>  --- original Nachricht Ende 
>>
>>
>> -
>> 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


  -
>>> 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: [ANN] Tapestry IOC for Wicket

2010-11-21 Thread Inge Solvoll
This is the most exciting news I've heard in a long time. Introducing T5 IOC
as a standard IOC choice for bigger frameworks could be a very important
move for Tapestry. We should find out if more can be done in this field, for
Spring MVC, JSF and other frameworks that are bigger than T5.

The bad news is: From what I've seen and heard, people that really care
about writing nice and clean framework-indepenent IOC-code in their web
project are a minority. People simply don't care about separating their
business logic from the framework. I asked the creators of the Play
framework about IOC-integration at a conference recently, and only got a
vague answer about Spring integration. The IOC-integration for Wicket
(Spring, Guice) also seems immature. A bit of guessing here, but this is my
impression.

I'm looking for a new job here in Norway, and the only web framework
mentioned apart from Spring MVC is Wicket. So creating a usable and stable
integration of T5 IOC would be absolutely brilliant. For me personally, it
would make it way easier to bring Tapestry along to my new job as a pure IOC
engine. That's a very good start!

I'm not a Wicket man, don't know it too much. But I will probably need to
learn it sooner or later for clients, so I would like to participate in
stabilizing this thing by creating a Wicket project and trying it out!

Inge

On Sat, Nov 20, 2010 at 11:05 PM, Christian Riedel
wrote:

> But Howard said, we have to evangelize people - why not by infiltration ;-)
>
>
> Am 20.11.2010 um 22:32 schrieb Igor Drobiazko:
>
> > We should ban you from the mailing list for it.
> >
> > No, no just joking. To be honest I don't believe this will help to
> improve
> > the adoption. I experienced the Wicket users as very religious about
> their
> > framework and very aggressive towards Tapestry. A lot of them would
> rather
> > die than using Tapestry.
> >
> > Cheers
> >
> > On Sat, Nov 20, 2010 at 8:36 PM, Christian Riedel
> > wrote:
> >
> >> Hi everyone,
> >>
> >> I started a little project today: I made a module for Wicket so that it
> >> uses Tapestry IOC for injection (I'm not joking, seriously :-))!
> >> Yesterday I had the idea to do that after I was annoyed again while
> using
> >> Wicket for one of my projects... I was looking for a way to have fun
> with
> >> Wicket and since I was struggling with its Spring integration I came up
> with
> >> that project. It was so absurd to have them both work together, I
> thought ,
> >> instead of competing each other. So I had to give it a try - no way out
> :-)
> >>
> >> Maybe someone would really use it if it's mature enough and migrate a
> >> Wicket application over to Tapestry! That'll be awesome! :-)
> >>
> >> The code is quite simple, it's using reflection to do the injection (I
> was
> >> inspired by the guice integration). I'm looking for a way to do it
> similar
> >> to the ClassTransformationWorker. I only implemented @Inject and
> >> @InjectService - no hibernate until now. My motivation is to find a
> useful
> >> frame of features that could be provided (apart from finding a proper
> place
> >> for the shutdown hook...). I really want to get rid of Spring and
> migrate
> >> that one application mentioned above to Tapestry one day. That's one
> goal at
> >> least.
> >>
> >> What do you think about it? Could it help Tapestry to find adoption in
> the
> >> Wicket-world?
> >>
> >> Or am I getting excommunicated by the community for that blasphemous
> >> chimera? (I could call it *Wickestry* but I don't dare to)
> >>
> >> Cheers,
> >> Christian
> >>
> >>
> >> [link] https://github.com/criedel/WicketTap5IOC
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
> > http://tapestry5.de
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: a simple question

2010-11-10 Thread Inge Solvoll
Short answer: No.

You have to create a public method in the page class and refer to it. All
logic should be in java, not tml.

On Wed, Nov 10, 2010 at 10:26 PM, hese <1024h...@gmail.com> wrote:

>
>
> ...and is it possible to pass parameters into the if evaluating function
> and
> receive a boolean/string back?
>
> something like
> if( foo('somevalue) ) {
>
> } else {
>
> }
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.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
>
>


"Code less, deliver more", possible problem

2010-11-01 Thread Inge Solvoll
jQuery promotes itself with "write less, do more", see
http://jquery.com/top left corner

A bit similar to the new Tapestry slogan, don't you think?

Just wanted to let you know in case nobody noticed :)

Inge


Re: jQuery Integration for 5.2

2010-10-31 Thread Inge Solvoll
Couldn't you just decorate the CoreJavaScriptStack?

2010/10/31 françois facon 

> thanks for the link.
>
> but even if you use jquery with the no conflit mode  with prototype,
> you must include jquery.js before prototype.
>
> see
>
> http://stackoverflow.com/questions/2830510/jquery-noconflict-not-working-in-ie8-only
>
>
> is it to late (for 5.2) to propose evolution on CoreJavascriptStack
> for
> - adding prototype only if it's needed
> - set the order of core stack when using more than one toolkit ( jquery
> before prototype)
> - add core stack required when needed by a component (kind of @ImportCore)
>


Re: CSS in Database

2010-10-27 Thread Inge Solvoll
Quick thought:

You could copy the code for that from T5.1 RenderSupport, and recreate it as
your own environmental?

On Thu, Oct 28, 2010 at 4:34 AM, Mark  wrote:

> Ok I found that I can @Inject RenderSupport and call it like:
>
>  @SetupRender
>public void setupRender() {
> renderSupport.addStylesheetLink("CustomCSS", null);
>}
>
> This works, but RenderSupport has been deprecated and "replaced" by
> JavaScriptSupport.  Unfortunately JavaScriptSupport only has methods for
> stylesheets that take Assets--and I can't create an asset that points to a
> page. There isn't a method equivalent to renderSupport.addStylesheetLink
> that takes a String.
>
> Is there a replacement from RenderSupport.addStylesheetLink(String, String)
> that I'm overlooking?
>
> Mark
>
> On Wed, Oct 27, 2010 at 8:25 PM, Mark  wrote:
>
> > Ok, I'll assume it is a bug (
> > https://issues.apache.org/jira/browse/TAP5-1330)
> >
> > Is there anyway to use the @Import annotation to add a stylesheet that
> > isn't a local asset--as in a page that is rendering as css instead of
> HTML.
> > If there is a way to @Import a stylesheet that is on a remote server, it
> > would probably work, but I can't seem to find a way to do that. Is it
> > possible?
> >
> > Mark
> >
> >
>


Pollution of service namespaces

2010-10-20 Thread Inge Solvoll
Some time ago, we had to change the id of one of our Spring beans. Reason:
chenillekit registers a service named "configurationService", which was the
name of our internal service as well.

This is a good example of a slightly polluted namespace, you can't name your
service logically according to the company's naming rules, causing our
spring/hibernate guys to say: "This rigid tapestry thing is causing too much
pain..."

The most obvious solution to this problem is to promote a coding standard
where you prefix the service id with your namespace, like
"ck:configurationService". But since most services are registered with
automatically generated id, that seems unlikely to happen.

The more involved solution would be to (optionally maybe) generate all
service ids prefixed by the module name. Or perhaps generate prefix only for
those services that have a name collision. An optional prefix (configuration
based) would mean that libraries like chenillekit and tynamo could use that,
while applications could skip that part.

Do you guys consider this to be an important issue, or is it an edge case?

Regards
Inge


Re: Tapestry 5.2.1 upgrade woes

2010-10-19 Thread Inge Solvoll
This is a big problem for third party libraries. I already removed equanda
from my application to avoid these situations, now I'm tempted to let
chenillekit go too. I only use it to a very limited extent. It's been a
couple of months now with a rather stable 5.2, third parties should have had
plenty of time to sort out trivial compatibility issues.

I know you guys are all volunteers, and you do a great job. This is a
framework issue too, that version bumps cause third party libs to stop
working...



On Mon, Oct 18, 2010 at 5:00 PM, Vangel V. Ajanovski  wrote:

> The chenillekit 1.3.0-snapshot that is found arround the net in maven
> repositories is older version. The problem was fixed only 2-3 days ago.
> You will have to wait till they publish a more recent 1.3.0-snapshot (it
> should be dated later than 15th october).
>
> What I did is
> I downloaded chenillekit source from subversion (using the commandline
> svn published on their website) and then
>mvn package -DskipTests=true
> Some tests failed when building chenillekit-tapestry module, but I
> disregarded it (thats why skipTests) and then I did
>mvn install
> So all the JAR are installed in my local mvn repo and now my application
> works and I don't have any other problems.
>
> But from all of chenillekit I only use the Window component for popup
> windows, so my case might not be representative.
> I have also moved to Tapestry 5.2.2-SNAPSHOT and it still works.
>
> On 10/18/2010 04:31 PM, Zubair Nuamaan wrote:
> > Hey,
> >
> > did you manage to find a fix for your problem?  I updated to use the new
> > Tapestry 5.2.1 and am getting the same error
> >
> > java.lang.NoClassDefFoundError:
> > org/apache/tapestry5/internal/services/RequestPathOptimizer
> >
> > I also updated to chenelkit 1.3.0-sanpshot.
> >
> > Thanks,
> >
> > Zubair
>
>
>


Re: [T5] Complexity for simple things, where is the documentation?

2010-10-16 Thread Inge Solvoll
You won't find any simpler solutions to this in other frameworks either. If
you want to create a page that refreshes itself with the serve time
periodically, you can't avoid at least some knowledge about how AJAX works
in general. You may avoid javascript by using Google Web Toolkit, but that
has its own learning curve.

The solution to your problem here is very simple and requires a minimal
amount of digging from your side. Just create a script that uses
Ajax.Updater from prototype, and generate a link on the server side that you
can use to trigger an event on your java class. See Autocompleter mixin from
tapestry for a very good example. Once you've learned this rather simple
technique, you won't need much else.

Tapestry's strength here is that it enables you to make a nice wrapping out
of your specialized component, so later on you can find your script, your
html and your java files packaged together in a nice module doing a very
simple thing and nothing else.

See my blog for some more simple examples. http://tinybits.blogspot.com/

On Sat, Oct 16, 2010 at 9:55 AM, iberck  wrote:

>
> I'm little confused with Tapestry
>
> In another past post I asked how can I refresh my page with the server
> time:
>
> http://tapestry.1045711.n5.nabble.com/T5-Refresh-1-second-Ajax-method-td3210194.html#a3210194
>
> I only need refresh my page with the server time and I need to learn
> mixins,
> ajax, zones, prototype, components, tapestry ajax methods (tapestry.js), ?
>
> http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/
> why all this code for that simple issue?
>
> I don't understand why there is this level of complexity... I see if you
> want to learn tapestry also you need to learn necessarily Prototype and
> download some source code to understand some things, I only see official
> documentation with basic concepts by alphabet but what happend with
> specific
> scenarios? the documentation is the source code?
> For example, where is the documentation for Tapestry.js use?
>
> I only want help to have a better framework or understand this point...
>
> Thank you for read me
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-Complexity-for-simple-things-where-is-the-documentation-tp3214893p3214893.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: T5 - Refresh 1 second Ajax method

2010-10-13 Thread Inge Solvoll
This should do it :)

http://api.prototypejs.org/ajax/ajax/updater/

On Wed, Oct 13, 2010 at 11:16 AM, iberck  wrote:

>
> Hi tapestry forum :)
>
> I need to show the server date in my webapp (not the client date), and
> refresh it every 1 second with ajax
> Anyone know how can I create an ajax method to show it ?
>
> Thanks in advance
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-Refresh-1-second-Ajax-method-tp3210194p3210194.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: component report failing

2010-10-12 Thread Inge Solvoll
https://issues.apache.org/jira/browse/TAP5-1302

I marked it as both 5.1 and 5.2, although I'm not 100% sure that it actually
happens in 5.2, I don't have a running 5.2 version right now...


On Mon, Oct 11, 2010 at 10:52 AM, Inge Solvoll wrote:

> Anyone planning on fixing this? The component reports are crucial as
> developer documentation!
>
> It fails for me in both 5.1.0.5 and 5.2
>
> On Fri, May 7, 2010 at 1:11 PM, Ulrich Stärk  wrote:
>
>> That's so annyoing. Happens with Maven 2.0 as well as with 2.2.
>>
>>
>> On 07.05.2010 09:04, Igor Drobiazko wrote:
>>
>>> No problems here.
>>>
>>> On Thu, May 6, 2010 at 11:10 AM, Ulrich Stärk  wrote:
>>>
>>>  Hey guys,
>>>>
>>>> somehow the tapestry-component-report in 5.2-SNAPSHOT is failing for me
>>>> (see stack trace below). Has anyone else seen this? I believe that
>>>> there's a
>>>> problem with the dependencies but before changing them I'd like to make
>>>> sure
>>>> that it's not me.
>>>>
>>>> Uli
>>>>
>>>> java.lang.NoSuchMethodError:
>>>>
>>>> org.apache.maven.doxia.module.xhtml.XhtmlSink.writeEndTagWithoutEOL(Ljavax/swing/text/html/HTML$Tag;)V
>>>>at
>>>> org.apache.maven.doxia.module.xhtml.XhtmlSink.link_(XhtmlSink.java:1066)
>>>>at
>>>>
>>>> org.apache.tapestry.mojo.ComponentReport.executeReport(ComponentReport.java:240)
>>>>at
>>>>
>>>> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:90)
>>>>at
>>>>
>>>> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:65)
>>>>at
>>>>
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>>>>at
>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>>>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
>>>>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
>>>>at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>at
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>at java.lang.reflect.Method.invoke(Method.java:592)
>>>>at
>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>at
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>
>>>> -
>>>> 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: component report failing

2010-10-11 Thread Inge Solvoll
Anyone planning on fixing this? The component reports are crucial as
developer documentation!

It fails for me in both 5.1.0.5 and 5.2

On Fri, May 7, 2010 at 1:11 PM, Ulrich Stärk  wrote:

> That's so annyoing. Happens with Maven 2.0 as well as with 2.2.
>
>
> On 07.05.2010 09:04, Igor Drobiazko wrote:
>
>> No problems here.
>>
>> On Thu, May 6, 2010 at 11:10 AM, Ulrich Stärk  wrote:
>>
>>  Hey guys,
>>>
>>> somehow the tapestry-component-report in 5.2-SNAPSHOT is failing for me
>>> (see stack trace below). Has anyone else seen this? I believe that
>>> there's a
>>> problem with the dependencies but before changing them I'd like to make
>>> sure
>>> that it's not me.
>>>
>>> Uli
>>>
>>> java.lang.NoSuchMethodError:
>>>
>>> org.apache.maven.doxia.module.xhtml.XhtmlSink.writeEndTagWithoutEOL(Ljavax/swing/text/html/HTML$Tag;)V
>>>at
>>> org.apache.maven.doxia.module.xhtml.XhtmlSink.link_(XhtmlSink.java:1066)
>>>at
>>>
>>> org.apache.tapestry.mojo.ComponentReport.executeReport(ComponentReport.java:240)
>>>at
>>>
>>> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:90)
>>>at
>>>
>>> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:65)
>>>at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>>>at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
>>>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
>>>at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>at
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>at java.lang.reflect.Method.invoke(Method.java:592)
>>>at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>
>>> -
>>> 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: Upload breaks ZoneUpdater

2010-09-23 Thread Inge Solvoll
:)

On Thu, Sep 23, 2010 at 8:07 AM, Kalle Korhonen
wrote:

> Bah. Tripped myself up with a client regexp validation that was
> associated to the upload component, which caused the page init to
> partially fail. Why is it always the smallest things that take the
> longest?
>
> Kalle
>
>
> On Wed, Sep 22, 2010 at 8:53 AM, Kalle Korhonen
>  wrote:
> > How odd. I have a conventional non-ajax form with one field that's
> > using Inge's ZoneUpdater for checking value's uniqueness and
> > displaying the results in a zone. As soon as I add the Upload
> > component (the standard, non-ajax one), the zone update breaks saying
> > "Ajaz Zone  does not have an associated Tapestry.ZoneManager
> > object". The Upload component doesn't add any complex Javascript or
> > otherwise do anything special, so I don't quite understand what can
> > cause it to break. Obviously the upload component changes the form's
> > enctype to multipart, but could that be the cause for failure and why?
> > Anyone run into this?
> >
> > Kalle
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: URL to file

2010-09-01 Thread Inge Solvoll
ApplicationGlobals service gives you ServletContext, which provides the
usual access to servlet context resources. Nothing simpler than that I think
:)

On Thu, Sep 2, 2010 at 7:09 AM, Charith Madusanka wrote:

> Hi!
>
> Is there any simple way to get URL to file in T5 API? Like smiler to
> "URLConnection con = url.openConnection();"
>
> charith
>


Re: T5's closing of meta tags gives browser warnings ....

2010-08-31 Thread Inge Solvoll
I suppose you could output the meta tags using  MarkupWriter.writeRaw.

void beginRender(MarkupWriter writer) {
writer.writeRaw("");
}

Put it in a component!

On Tue, Aug 31, 2010 at 9:40 PM, Gunnar Eketrapp
wrote:

> Hi!
>
> Chrome complains about unmatched  tags.
>
> My .tml file contains meta lines  as ...
>
> 
>
> ... so it must be T5's template processer that splits the  into
>  which seems to be not valid.
>
> Is the any way that I can get rid of these warnings and instruct T5 to do
> it
> differently ?
>
> Thanks in advance!
>
> Gunnar Eketrapp
>
> ===
>
> HTML output ...
>
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
>
>
>...
>


Re: [T5.2] Javassist 3.12.1.GA checksum error

2010-08-25 Thread Inge Solvoll
I may have bumped into the same problem. But didn't get the same error,
maven just told me that it didn't find anything at the https version of the
url below. It's probably related.

On Mon, Aug 23, 2010 at 1:26 PM, Blower, Andy wrote:

> I'm trying to migrate our application to T5.2, but I'm getting a checksum
> error with Javassist 3.12.1.GA
>
> C:\tmp>fciv -sha1 javassist-3.12.1.GA.jar
> 526633327faa61aee448a519e8a4d53ec3057885
>  javassist-3.12.1.ga.jar
>
>
> http://repository.jboss.org/nexus/content/groups/public-jboss/javassist/javassist/3.12.1.GA/javassist-3.12.1.GA.jar.sha1
>
> 5e1f0b5574efb7b16be9b1b47195a5be0b65a365
>
>
> Anyone else had this problem? I'll try and figure out where to report this
> to JBoss, but I would have thought I wasn't the only Tapestry user to run
> into this issue. I looked at 3.9.0.GA as used by Tap5.1.0.5 and that is
> fine from the same repository.
>
> Thanks,
>
> Andy.
>


Re: tapestry-component-report: How to use?

2010-08-24 Thread Inge Solvoll
After actually reading my own error message, I tried this:

mvn org.apache.tapestry:tapestry-component-report:5.2.0:component-report

That seemed to work :)

On Tue, Aug 24, 2010 at 10:28 AM, Inge Solvoll wrote:

> Thanks! :)
>
> But still not following, I'm a maven idiot :)
>
> Tried to run mvn component-report, got the following error:
>
> C:\dev>mvn component-report
> [INFO] Scanning for projects...
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] Invalid task 'component-report': you must specify a valid lifecycle
> phase, or a goal in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Aug 24 10:14:50 CEST 2010
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
>
>
> I added this right after my  section:
>
> 
> 
> 
>  org.apache.tapestry
> tapestry-component-report
>  5.2.0
> 
> my.app.package.here.tapestry5
>  
> 
> 
>  
>
>
>
> On Tue, Aug 24, 2010 at 9:19 AM, Ulrich Stärk  wrote:
>
>> The goal is called "component-report".
>>
>>
>> On 23.08.2010 21:07, Inge Solvoll wrote:
>>
>>> http://tapestry.apache.org/tapestry5.1/tapestry-component-report/
>>>
>>> Is this something that generates nice component documentation?
>>>
>>> If so, how do I invoke it from mvn command line?
>>>
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>


Re: tapestry-component-report: How to use?

2010-08-24 Thread Inge Solvoll
Thanks! :)

But still not following, I'm a maven idiot :)

Tried to run mvn component-report, got the following error:

C:\dev>mvn component-report
[INFO] Scanning for projects...
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Invalid task 'component-report': you must specify a valid lifecycle
phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Tue Aug 24 10:14:50 CEST 2010
[INFO] Final Memory: 1M/4M
[INFO]



I added this right after my  section:




org.apache.tapestry
tapestry-component-report
5.2.0

my.app.package.here.tapestry5







On Tue, Aug 24, 2010 at 9:19 AM, Ulrich Stärk  wrote:

> The goal is called "component-report".
>
>
> On 23.08.2010 21:07, Inge Solvoll wrote:
>
>> http://tapestry.apache.org/tapestry5.1/tapestry-component-report/
>>
>> Is this something that generates nice component documentation?
>>
>> If so, how do I invoke it from mvn command line?
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


tapestry-component-report: How to use?

2010-08-23 Thread Inge Solvoll
http://tapestry.apache.org/tapestry5.1/tapestry-component-report/

Is this something that generates nice component documentation?

If so, how do I invoke it from mvn command line?


Re: Query parameters

2010-08-19 Thread Inge Solvoll
Loving the FAQ!!!

On Thu, Aug 19, 2010 at 10:34 PM, Igor Drobiazko
wrote:

> This is really nice.
>
> On Thu, Aug 19, 2010 at 8:56 PM, Howard Lewis Ship 
> wrote:
>
> > I'm very excited by the new process; ask a FAQ and I can update the
> > FAQ page live and return a link to that.
> >
> > On Thu, Aug 19, 2010 at 11:22 AM, Michael Gentry 
> > wrote:
> > > Wish I had known that one about 4 months ago ... :-)
> > >
> > >
> > > On Thu, Aug 19, 2010 at 1:03 PM, Howard Lewis Ship 
> > wrote:
> > >> Just added to the FAQ:
> > >>
> > >>
> >
> https://cwiki.apache.org/confluence/display/TAPESTRY/Frequently+Asked+Questions#FrequentlyAskedQuestions-HowdoIaddqueryparametersaPageLinkorActionLink%3F
> > >>
> > >>
> > >> On Thu, Aug 19, 2010 at 3:44 AM, Davor Hrg 
> wrote:
> > >>> I'm posting this to user group since it is mostly usage question.
> > >>>
> > >>> The new query parameter binding is a welcome addition, especialy in
> > >>> combination
> > >>> with replacing the page pool with static instaces. All nice and well,
> > but
> > >>> how do I pass
> > >>> query parameters through PageLink or AcionLink ?
> > >>>
> > >>> Best to explain it through the example I'm using it with:
> > >>> There is a page that lists documents, and there is a search form with
> > few
> > >>> fields.
> > >>> One field is the "year" which tells the page to limit to docs from
> that
> > >>> year.
> > >>> So I changed the @Persist to @ActivationRequestParameter and after
> > >>> submitting
> > >>> the search form I get a nice ur: docs/list?year=2009.
> > >>> Ok, this works well, I can have multiple tabs with different filters,
> > much
> > >>> like php which I
> > >>> like very much and use often.
> > >>> but there are more things that do not work:
> > >>> 1. using PageLink from another page to jump to
> > @ActivationRequestParameter
> > >>> 2. using ActionLink to pass query parameters (annotated with
> > >>> @RequestParameter)
> > >>>
> > >>> 3. If there are more than one such param there is no way to create a
> > link to
> > >>> it self with one of them changed
> > >>>   for example on page: docs/list?year=2009&type=FI I can not create a
> > link
> > >>> directly to docs/list?year=2010&type=FI
> > >>>   it would be nice to be able to write this:  > >>> q:year="2010">2010 to get the mentioned result
> > >>>
> > >>> for that matter a namespace xmln:p="tapestry:parameter" or new one
> like
> > >>> xmlns:q="tapestry:query" would be nice
> > >>> for the ActionLink and PageLink.
> > >>>
> > >>>
> > >>> Davor Hrg
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Howard M. Lewis Ship
> > >>
> > >> Creator of Apache Tapestry
> > >>
> > >> The source for Tapestry training, mentoring and support. Contact me to
> > >> learn how I can get you up and productive in Tapestry fast!
> > >>
> > >> (971) 678-5210
> > >> http://howardlewisship.com
> > >>
> > >> -
> > >> 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
> > >
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> >
> > The source for Tapestry training, mentoring and support. Contact me to
> > learn how I can get you up and productive in Tapestry fast!
> >
> > (971) 678-5210
> > http://howardlewisship.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
>


Re: ClassNameLocator does not handle duplicates

2010-08-17 Thread Inge Solvoll
I have tried repeatedly decorating and advising ClassNameLocator, it doesn't
work, my methods are never hit. To be sure, I tried to replace the service
name with another known service (ClientInfrastructure), which worked. Does
anyone see someting wrong with the method below? Or is it not possible to
decorate or advise the ClassNameLocator?

public ClassNameLocator decorateClassNameLocator(ClassNameLocator original,
final ClasspathURLConverter c) {
return new CustomClassNameLocator(c);
  }

On Mon, Jul 26, 2010 at 3:55 PM, Inge Solvoll wrote:

> I'm using eclipse, but it's a big legacy project with lots of custom build
> needs. So it isn't too easy to setup a smooth integrated build
> environment...
>
> I suddenly realized that it shouldn't be too hard decorating the
> ClassNameLocator and strip away duplicates from its result. Seems logical
> when this is a requirement that is very specific to our setup.
>
> Thanks for the hints anyway :)
>
> Inge
>
>
> On Sun, Jul 11, 2010 at 5:03 PM, Thiago H. de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> On Sun, 11 Jul 2010 11:45:24 -0300, Inge Solvoll 
>> wrote:
>>
>>  As I said, it's convenient. Our application consists of many different
>>> maven projects that need to be assembled into one web container as jars.
>>> It's a
>>> complex aggregated application, and it would require extra work to
>>> provide a specific setup for development that doesn't use jar files.
>>> Espescially since it works the way we do it now, and it doesn't seem like
>>> the biggest hack in the world to me. The classloader was probably built like
>>> this (handling
>>> duplicates by priority) for a reason :)
>>>
>>
>> Using m2eclipse, I can open all the projects that comprise my application,
>> edit the sources of each one of them and have the changes being picked up
>> instantly.
>> If you're not using Eclipse, I can see that your setup is needed.
>>
>>
>> --
>> 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: Select in Loop

2010-08-13 Thread Inge Solvoll
You have hit one of my problem spots in T5 :)

I also just use formState="iteration", because I simply don't understand how
to make the alternatives work...

On Fri, Aug 13, 2010 at 1:40 PM, Mite  wrote:

>
> I made a ValueEncoder and also put formState="iteration" in the loop. The
> second one seemed to made it work, even though I don't really understand
> why.
>
>  formState="iteration" t:encoder="encoder">
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Select-in-Loop-tp2471420p2572247.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: Refresh zone periodicaly

2010-08-12 Thread Inge Solvoll
Using the ZoneUpdater, you can easily just call update() on the zone object
using setTimeout as mentioned by Pablo.
http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html#comments

You
could also just fire an event (
element.fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);)
http://tinybits.blogspot.com/2009/10/missing-javascript.html

On Fri, Aug 13, 2010 at 5:06 AM, Pablo dos Reis wrote:

> Hi Mite,
>
> You can use one javascrit, like this
>
> function execute() {
>  // refresh div
>  setTimeout('execute()', 2000);
> }
>
> In this case the div will be refresh for each 2 seconds
>
> 2010/8/12 Mite 
>
> >
> > Hi
> > Is there a way to refresh a zone on a fixed period automatically?
> >
> > Thanks
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/Refresh-zone-periodicaly-tp2498534p2498534.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
> >
> >
>
>
> --
> Pablo Henrique dos Reis
>


Re: Multicriteria research

2010-08-09 Thread Inge Solvoll
You probably have this in your page class:

@Property
private List types;

That will generate getters and setters, which is what is going on when you
get the exception.

On Mon, Aug 9, 2010 at 2:19 PM, mcfly37  wrote:

>
> Hey!
>
> You were right I didn't add getTypes method, but I believe that eclipse
> automatically add getters and setters when they are not wrote am I wrong?
>
> Because when I add those methods, A new exception rise up :
>
> Render queue error in BeginRender[borne/Borne:pagelink_1]:
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for com.applira.web.pages.borne.BorneDetails
>
> You can notice that the exception is in bornes.tml witch is the page from
> where the link for Bornedetails is. And apparently the root cause of this
> is
> :
>
> Caused by: org.apache.tapestry5.internal.services.TransformationException:
> Unable to add new method public final java.util.List getTypes() as it
> already exists.
>
> But I checked in the file and I have only one getTypes method...
>
> Tornn wrote:
> >
> > Hi!
> >
> >   >>  > t:value="libelle" style="width: 230px;" />
> >   Where is method getTypes?
> >
> >   Try to read route cause of exception. Tapestry5 is really great in
> > reporting detailed exceptons.
> >
> > 2010/8/9 mcfly37 :
> >>
> >> Hello peoples!!
> >>
> >> I'm trying to design a multi criteria research for an application. This
> >> application have to display a list of object this way :
> >>
> >> 
> >> >> t:value="isoMsg">
> >>
> >>
> >>  ${isoMsg.idMessage}/${isoMsg.horodatage}/${getLibelleType()}
> >>
> >> >> t:source="ssMsgList" t:value="isoMSg">
> >> >> style="background-color: ${getIsoMsgState()}">
> >>
> >>
> ${isoMsg.idMessage}/${isoMsg.horodatage}/${isoMsg.exception}/${getLibelleType()}
> >>
> >>
> >>
> >>  
> >>
> >>
> >>
> >> These objects are message objects and they can have sub messages. So I
> >> the
> >> user to research particular message with somes criteria (date, state
> >> etc...)
> >>
> >> Here his the .tml code :
> >>
> >>
> >> 
> >> :
> >> >> t:value="libelle" style="width: 230px;" />
> >> :
> >> t:model="literal:
> >> ok,
> >> non-ok"/>
> >>
> >>
> >> 
> >>
> >>
> >> And the java code :
> >>
> >>@Persist
> >>@Property
> >>private String libelle;
> >>
> >>@SuppressWarnings("unused")
> >>@Component(parameters = { "value=actualDate1",
> >>"datePattern=dd-MM- HH:mm" })
> >>private DateTimeField _dateTimeField1;
> >>
> >>
> >>@Persist
> >>@Property
> >>private Date _actualDate1;
> >>
> >>@Persist
> >>@Property
> >>private String _etatRetour;
> >>
> >>Object onSuccess(){
> >>return BorneDetails.class;
> >>}
> >>
> >> public List getIsoMsgList() {
> >>String error = null;
> >>try {
> >>if(_etatRetour == null)
> >>{
> >>error = null;
> >>}
> >>else if(_etatRetour.equals("ok"))
> >>{
> >>error = "false";
> >>}
> >>else if(_etatRetour.equals("non-ok"))
> >>{
> >>error = "true";
> >>}
> >>TypeIso type = null;
> >>if (libelle !=null){
> >>type =
> >> typeIsoManager.findByLibelle(libelle);
> >>}
> >>
> >>return (List)
> >> isoMsgManager.findMultiCritere(bornes.getId(),
> >> _actualDate1, type, error);
> >>} catch (BusinessException e) {
> >>
> >>e.printStackTrace();
> >>return null;
> >>} catch (TechnicalException e) {
> >>
> >>e.printStackTrace();
> >>return null;
> >>}
> >>}
> >> public List getLibelleList() {
> >>try {
> >>return typeIsoManager.findLibelle();
> >>} catch (BusinessException e) {
> >>// TODO Auto-generated catch block
> >>e.printStackTrace();
> >>return null;
> >>} catch (TechnicalException e) {
> >>// TODO Auto-generated catch block
> >>

Re: Why would I choose JQuery?

2010-08-09 Thread Inge Solvoll
If this is correct, that jQuery has around 40% market share and prototype
around 9%, isn't it a major popularity drawback for T5 to be using prototype
as its javascript core?

Right now, potential new users could be thinking:

"Hey, T5 uses an outdated, boring and poorly supported javascript framework.
Why? Is it an outdated, boring and poorly supported framework itself`?".

With jQuery in the core instead of prototype, it would be an entirely
different story. One of the biggeste problems for T5 today is that it is
considered alternative in many ways. Tiny (small user base), poorly
supported, poorly documented, non-standard (not being Spring or JSF). Unfair
in many ways, but considered true by many people. The community is making an
effort these days to solve some of these issues (documentation, marketing),
but it might actually be a bigger win to just integrate with very popular
tools, and let their light reflect on us. jQuery being one of the shiniest
and most logical ones to integrate with.


On Fri, Aug 6, 2010 at 1:58 AM, Chris Mylonas  wrote:

> Awesome contrib!
> I'll hopefully find some time to work with it this month - have you got any
> publicly accessible demos of it in action?
>
> On 06/08/2010, at 4:46 AM, Robin Komiwes wrote:
>
> > I might be not objective since I'm in love with jQuery, but imho,
> choosing
> > jQuery over others will avoid you to have a *big* technical debt.
> >
> > You might be interested by this reading:
> > http://royal.pingdom.com/2010/03/26/jquery-triumphant-march-to-success/
> >
> > For your tab component, what about this one:
> http://jqueryui.com/demos/tabs/
> > It's skinnable, customizable, and it should be easy to integrate it into
> > tapestry5 (and to contribute it to
> http://github.com/got5/tapestry5-jquery;))
> >
> >
> >
> > On Thu, Aug 5, 2010 at 8:27 PM, Kalle Korhonen
> > wrote:
> >
> >> I have an older T4 app that I'm going to upgrade to T5. It's not a
> >> full RIA but nevertheless a fairly fancy, interactive web app with
> >> drag & drop, ajax file uploads etc. The UI of the app was based on
> >> Prototype and Dojo 0.4.3 which served me well at the time despite of
> >> being a bit on the heavy side. I haven't really used JQuery in
> >> production apps yet but I wouldn't mind switching but if I do, I don't
> >> want to drag Prototype around with it. There are T5 integration libs
> >> available both for a newer version of Dojo and for JQuery. It might be
> >> marginally easier to adjust the existing Javascript for Dojo than
> >> having to rewrite everything with JQuery but as said, I'm fine with
> >> the cost. Performance always matters, so load times, execution
> >> performance, ability to use CDN etc. all matter. I don't mind filing
> >> an occasional issue, but I don't want to get sucked into seriously
> >> having to debug and maintain another add-on library so I'd prefer
> >> something relatively stable even if it didn't have all the latest
> >> bells and whistles. Of ready-made components, only a good, skinnable,
> >> customizable and extensible tab component is relevant to me. Now, why
> >> would I choose JQuery over the other choices? I'd really love to hear
> >> comments from people who've had experience of multiple Javascript
> >> libraries and have made a switch to JQuery or perhaps gone the other
> >> way.
> >>
> >> Kalle
> >>
> >> -
> >> 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: how to contribute a 'component context' service

2010-08-09 Thread Inge Solvoll
Seems like there's a misunderstanding here. ComponentSOURCE and
ComponentRESOURCES aren't the same thing...

On Mon, Aug 9, 2010 at 5:21 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Sun, 08 Aug 2010 21:47:00 -0300, Paul Stanton 
> wrote:
>
>  So I can either contribute a markup renderer that can access the
>> renderSupport object OR inject a service that can in turn inject
>> ComponentSource
>>
>
> This isn't correct. You'll use @Inject to get ComponentSource (which is a
> service) and @Environmental to get the other objects:
>
> @Inject
> private ComponentSource componentSource;
>
> @Environmental
> private RenderSupport renderSupport;
>
> @Environmental
> private ComponentResources componentResources;
>
> // I'm not sure if this is an environment object
> @Environmental
> private PageRenderQueue pageRenderQueue;
>
> --
> 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: ClassNameLocator does not handle duplicates

2010-07-26 Thread Inge Solvoll
I'm using eclipse, but it's a big legacy project with lots of custom build
needs. So it isn't too easy to setup a smooth integrated build
environment...

I suddenly realized that it shouldn't be too hard decorating the
ClassNameLocator and strip away duplicates from its result. Seems logical
when this is a requirement that is very specific to our setup.

Thanks for the hints anyway :)

Inge

On Sun, Jul 11, 2010 at 5:03 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Sun, 11 Jul 2010 11:45:24 -0300, Inge Solvoll 
> wrote:
>
>  As I said, it's convenient. Our application consists of many different
>> maven projects that need to be assembled into one web container as jars.
>> It's a
>> complex aggregated application, and it would require extra work to provide
>> a specific setup for development that doesn't use jar files. Espescially
>> since it works the way we do it now, and it doesn't seem like the biggest
>> hack in the world to me. The classloader was probably built like this
>> (handling
>> duplicates by priority) for a reason :)
>>
>
> Using m2eclipse, I can open all the projects that comprise my application,
> edit the sources of each one of them and have the changes being picked up
> instantly.
> If you're not using Eclipse, I can see that your setup is needed.
>
>
> --
> 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: production html whitespace compression alters rendered markup

2010-07-16 Thread Inge Solvoll
As always, I'm pretty sure it's possible and not too hard to decorate the
built-in service that does this work :)

On Fri, Jul 16, 2010 at 5:53 AM, Paul Stanton  wrote:

> thanks for the suggestion howard, this would be fine if it were obvious to
> all developers which cases were problematic. otherwise it's a case of
> putting out spot fires which isn't good.
>
> i still think making the whitespace compressor more intelligent ie
> replacing multiple whitespace chars with a single space is preferable. that
> way we still get 99% of the benefits of compression yet none of the
> drawbacks.
>
> is there a way to override the implementation of the class that does this?
>
> regards, paul.
>
>
> Howard Lewis Ship wrote:
>
>> Where whitespace counts, add an xml:space="preserve" attribute to the
>> enclosing tag, i.e.
>>
>> This is my paragraph and sometimes a single
>> word or phrase might need
>> some special attention so I
>> might do this, but it's still > style="font-style:italic;">my paragraph.
>>
>>
>>
>> On Wed, Jul 14, 2010 at 9:27 PM, Paul Stanton 
>> wrote:
>>
>>
>>> Firstly, I'd like to say that tapestry does most things very well and I
>>> probably only comment on the things it doesn't do well. Thank you to
>>> those
>>> who've spent time improving the framework for making my job as a
>>> developer
>>> more enjoyable.
>>>
>>> I do have an issue with the production mode Considering the following in
>>> your average TML:
>>>
>>> This is my paragraph and sometimes a single word or phrase >> style="text-decoration:underline;">might need some special
>>> attention
>>> so I might do this, but it's still
>>> my paragraph.
>>>
>>> or a shorter eg:
>>> A B C D
>>>
>>> In development mode, this will render unchanged:
>>>
>>> A B C D
>>>
>>> However in production mode, tapestry will take out some important
>>> whitespace:
>>>
>>> A BC D
>>>
>>> I know you can partially combat this by using a non-breaking space in the
>>> markup ( ) however, this has the expected drawback of disallowing
>>> line
>>> breaking where it may be required.
>>>
>>> for example, a list of links:
>>> 1
>>> 2
>>> 3
>>> 4
>>> 5
>>> ...
>>>
>>> becomes
>>> 123>> href="url4">45...
>>>
>>> I agree that some 'compression' on html syntax is a good thing in a
>>> production environment, but to keep the integrity of the document I think
>>> tapestry should replace multiple whitespace characters with one
>>> whitespace
>>> character instead of removing all whitespace between tags. Therefore,
>>> while
>>> I know I can set "tapestry.compress-whitespace" to false, I would prefer
>>> to
>>> have my suggestion implemented in place of the existing mechanism or as
>>> an
>>> alternative.
>>>
>>> The main issues for me:
>>> 1. Rendered markup is fundamentally different between production and
>>> development environments, making the most commonly used form of testing
>>> flawed
>>> 2. In some cases a space is the only solution to layout problems and
>>> tapestry won't allow it
>>>
>>> Keen to hear other opinions...
>>>
>>> p.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>


Re: Expansion for Javascript

2010-07-14 Thread Inge Solvoll
Actually, it's quite super easy to create those yourself :) Seriously, very
very easy.

Have a look at OutputRaw.java in the T5 source, and you'll get the idea.

And then you might say "Yeah, but something like this should be built-in". A
lot of things should, but there aren't too many Tapestry committers :)

Inge

On Wed, Jul 14, 2010 at 7:40 PM, Tim Koop  wrote:

>  Cool!  It works!
>
> I still had to do the escaping of the quotation marks myself, but at least
> the html encoding doesn't need to be undone first.
>
>
>
> (Now if only there was outputjsstring, outputurl, outputtextarea,
> outputcsv, and outputcustom)
>
>
>
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
>
> On 14/07/2010 12:30 PM, Michael Gentry wrote:
>
>> Assuming your example is in your TML file, try:
>>
>> var name='';
>>
>> mrg
>>
>>
>> On Wed, Jul 14, 2010 at 1:27 PM, Tim Koop  wrote:
>>
>>>  Hi everyone.
>>>
>>> I've looked through the documentation, but I can't seem to find an answer
>>> for what I'm looking for.
>>>
>>> I want to put a String into Javascript as a variable, like this:
>>>
>>> 
>>> var name = "${name}";
>>> 
>>>
>>> The problem is that if the name will have a quotation mark in it, it
>>> won't
>>> be escaped, and if it has angle brackets, they will be escaped.  So a
>>> name
>>> like: /This->"One"/ will create a variable that looks like this:
>>>
>>> 
>>> var name = "This->"One"";
>>> 
>>>
>>> There must be a simple answer for this, but I haven't found it.
>>>
>>> Thanks in advance.
>>>
>>>
>>>
>>> --
>>> Tim Koop
>>> t...@timkoop.com
>>> www.timkoop.com
>>>
>>>  -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>


Re: ClassNameLocator does not handle duplicates

2010-07-11 Thread Inge Solvoll
On Sat, Jul 10, 2010 at 8:08 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Sat, 10 Jul 2010 13:40:38 -0300, Inge Solvoll 
> wrote:
>
>  Hi!
>>
>
> Hi!
>
>  In our application we have classes packaged in jars. When we make changes
>> to
>> those classes during development, they are compiled into WEB-INF/classes,
>> making them override the ones in the jars because WEB-INF/classes is read
>> first by the classloader. This is a convenient way of developing for us.
>>
>
> Why are you packaging in JARs classes you're still developing?
>
>
As I said, it's convenient. Our application consists of many different maven
projects that need to be assembled into one web container as jars. It's a
complex aggregated application, and it would require extra work to provide a
specific setup for development that doesn't use jar files. Espescially since
it works the way we do it now, and it doesn't seem like the biggest hack in
the world to me. The classloader was probably built like this (handling
duplicates by priority) for a reason :)



>
>  But: The ClassNameLocator does not take this into account. So it finds 2
>> classes with the same name, one from the jar and one from WEB-INF/classes.
>> Is this the desired behaviour? As you can see from the link, this causes
>> problems for me when using a component from spreadthesource.
>>
>
> I don't know the answer, but having two different versions of the same
> class in the classpath at the same time seem like something that should be
> avoided.
>
> --
> 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
>
>


ClassNameLocator does not handle duplicates

2010-07-10 Thread Inge Solvoll
Hi!
In our application we have classes packaged in jars. When we make changes to
those classes during development, they are compiled into WEB-INF/classes,
making them override the ones in the jars because WEB-INF/classes is read
first by the classloader. This is a convenient way of developing for us.

But: The ClassNameLocator does not take this into account. So it finds 2
classes with the same name, one from the jar and one from WEB-INF/classes.
Is this the desired behaviour? As you can see from the link, this causes
problems for me when using a component from spreadthesource.

http://spreadthesource.com/2010/07/christophe-as-an-apache-tapestry-5-committer/#comments


Re: Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Inge Solvoll
It's more fun to create your own ResultProcessor, though :) You'll get to
try out the real power of T5.

On Thu, Jul 8, 2010 at 1:28 PM, Borut Bolčina wrote:

> Thanks for ultra fast responses. I guess they went through
> AjaxComponentEventResultProcessor :-)
>
> Until I try implementing the processor class, I found a compromise.
>
> return org.apache.tapestry5.json.JSONObject jsonObject = new
>
> org.apache.tapestry5.json.JSONObject(JSONSerializer.toJSON(userData).toString());
>
> I found out that org.apache.tapestry5.json.JSONObject has a constructor
> with
> a String form of a JSON object.
>
> Thanks!
> Borut
>
> >
>
> 2010/7/8 Ulrich Stärk 
>
> > You'll probably want to contribute it to
> AjaxComponentEventResultProcessor
> > though.
> >
> >
> > On 08.07.2010 12:36, Christophe Cordenier wrote:
> >
> >> Hi
> >>
> >> You will have to create your own ComponentEventResultProcessor and
> >> contribute it in your AppModule class :
> >>
> >> public void contributeComponentEventResultProcessor(
> >> MappedConfiguration
> >> configuration) {
> >>
> >>   configuration.addInstance(net.sf.json.JSONObject.class,
> >> YouProcessor.class);
> >>
> >> }
> >>
> >> 2010/7/8 Borut Bolčina
> >>
> >>  Hello,
> >>>
> >>> Is it possible to configure return types?
> >>>
> >>> In one of my event methods I was trying to return
> net.sf.json.JSONObject
> >>> instead of org.apache.tapestry5.json.JSONObject and got this error
> >>> message:
> >>>
> >>> [ERROR] TapestryModule.RequestExceptionHandler Processing of request
> >>> failed
> >>> with uncaught exception: A component event handler method returned the
> >>> value
> >>>
> >>>
> >>>
> {"birthDay":"","birthMonth":"","birthYear":"","gender":"male","postOfficeNumberAndName":"1236
> >>> Trzin"}. Return type net.sf.json.JSONObject can not be handled.
> >>>  Configured
> >>> return types are java.lang.Class, java.lang.String,
> >>> org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse,
> >>> org.apache.tapestry5.ajax.MultiZoneUpdate,
> >>> org.apache.tapestry5.json.JSONArray,
> >>> org.apache.tapestry5.json.JSONObject,
> >>> org.apache.tapestry5.runtime.Component,
> >>> org.apache.tapestry5.runtime.RenderCommand.
> >>> org.apache.tapestry5.runtime.ComponentEventException: A component event
> >>> handler method returned the value
> >>>
> >>>
> >>>
> {"birthDay":"","birthMonth":"","birthYear":"","gender":"male","postOfficeNumberAndName":"1236
> >>> Trzin"}. Return type net.sf.json.JSONObject can not be handled.
> >>>  Configured
> >>> return types are java.lang.Class, java.lang.String,
> >>> org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse,
> >>> org.apache.tapestry5.ajax.MultiZoneUpdate,
> >>> org.apache.tapestry5.json.JSONArray,
> >>> org.apache.tapestry5.json.JSONObject,
> >>> org.apache.tapestry5.runtime.Component,
> >>> org.apache.tapestry5.runtime.RenderCommand. [at context:Index.tml, line
> >>> 20]
> >>>
> >>>
> >>> My event method:
> >>>
> >>>@OnEvent(component = "email", value = "blur")
> >>>public JSONObject checkIfUserWithThisEmailExists(String value) {
> >>>UserData userData = new UserData();
> >>>if(value.equals("b...@example.com")) {
> >>>userData.setPostOfficeNumberAndName("1236 Trzin");
> >>>userData.setGender("male");
> >>>} else {
> >>>logger.info("Bob does not exist.");
> >>>}
> >>>JSONObject jsonObject = (JSONObject)
> >>> JSONSerializer.toJSON(userData);
> >>>return jsonObject;
> >>>}
> >>>
> >>> The reason I used net.sf.json.JSONObject is because it offers great
> >>> conversion and construction capabilities to/from JavaBeans/XML/JSON.
> Have
> >>> a
> >>> look at http://json-lib.sourceforge.net/snippets.html.
> >>>
> >>> Is it possible or do I have to construct the
> >>> org.apache.tapestry5.json.JSON
> >>> object by hand?
> >>>
> >>> Thanks,
> >>> Borut
> >>>
> >>>
> >>
> >>
> >>
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Tapestry- one of the finest web framework

2010-07-07 Thread Inge Solvoll
Get a room!

On Wed, Jul 7, 2010 at 6:31 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Wed, 07 Jul 2010 13:23:39 -0300, Howard Lewis Ship 
> wrote:
>
>  Oh, if only I still lived in Massachusetts (*).
>> (*) The first US state to allow same sex unions.
>>
>
> Tapestry 5: code less, deliver more, find love! :D
>
>
> --
> 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: Tree Component in Tapestry 5

2010-06-29 Thread Inge Solvoll
I highly recommend this library. It costs money, but it's definitely worth
it.

http://dhtmlx.com/docs/products/dhtmlxTree/index.shtml?pl1

We have created a wrapper around it. Not able to share it right now,
unfortunately, but it is very thin and you can easily do it yourself

On Tue, Jun 29, 2010 at 10:56 AM, Borut Bolčina wrote:

> As you can see here;
> http://www.questionpro.com/akira/ShowResults?id=1151880&mode=data it is
> one
> of the most wanted T5 component.
>
> 2010/6/29 Halil Karakose 
>
> > Hi,
> > I searched over the net but couldn't find a nice tree component. Is there
> a
> > working tapestry 5 tree component available?
> >
> > thanks...
> >
>


Re: [Tapestry Central] Tapestry 5.2: Improved Query Parameter Support

2010-06-26 Thread Inge Solvoll
It's not very intuitive. If you got 2 annotations, named @QueryParameter and
@RequestParamter, you couldn't possibly know who does what without reading
the docs.

If I understand this correctly, @QueryParameter is for passing a query
string param as context to a component event handler, while
QueryParameterMapped contributes to page activation.

Why not:

@QueryComponentEventParameter
@QueryPageActivationContext

Or something similar. If possible, the name should say what it actually
does, not only where it gets its data from (query string). I see the point
here with avoiding too long names, though...

Inge

On Sat, Jun 26, 2010 at 5:36 PM, Michael Gentry wrote:

> Maybe @RequestParameter?  I don't think that is in use.
>
> Thanks,
>
> mrg
>
>
> On Sat, Jun 26, 2010 at 11:32 AM, Howard Lewis Ship 
> wrote:
> > It's still alpha, and changeable, if a consensus can be reached.
> >
> > On Sat, Jun 26, 2010 at 8:29 AM, Michael Gentry 
> wrote:
> >> LinkParameter?  HTTPParameter (a lot of P's in that one)?
> >> URLParameter?  ...  :-)
> >>
> >> mrg
> >>
> >>
> >> On Sat, Jun 26, 2010 at 6:02 AM, Igor Drobiazko
> >>  wrote:
> >>> @QueryParameter does already exists (since 5.2). It is used to annotate
> a
> >>> parameter of an event handler method.
> >>>
> >>> On Sat, Jun 26, 2010 at 8:19 AM, Geoff Callender <
> >>> geoff.callender.jumpst...@gmail.com> wrote:
> >>>
>  Good stuff.
> 
>  One question, though - why such a long name, @QueryParameterMapped,
> instead
>  of just @QueryParameter?
> 
>  On 25/06/2010, at 12:00 PM, Howard wrote:
> 
>  > I just checked in some very nice changes for Tapestry 5.2; you can
> now
>  > easily store data about a page in the URL as query parameters:
>  > @QueryParameterMapped private String name;
>  >
>  > By annotating a page (not a component!) field this way, the field
> will
>  > be mapped to the query parameter "name". When a page render link or
>  > component event link for the page is created, the current value of
> the
>  > field will be added as parameter "name". When that link is triggered
> to
>  > form a request, the parameter will be read and the field updated
> from
>  > the query parameter value.
>  > It isn't limited to strings ... it uses the whole ValueEncoder
>  > machinery so that you can encode numbers or even Hibernate entities
>  > (represented in the URL as their primary key).
>  > Cool stuff, if I do say so myself. Even I'm still learning how to
> flex
>  > the massive amount of meta-programming muscle that Tapestry
> provides.
>  > It turns out that the combination of component method advice with
>  > custom events triggered on the page can do some really sophisticated
>  > things!
>  >
>  > --
>  > Posted By Howard to Tapestry Central at 6/24/2010 07:00:00 PM
> 
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>  For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> >>>
> >>>
> >>> --
> >>> Best regards,
> >>>
> >>> Igor Drobiazko
> >>> http://tapestry5.de
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> >
> > The source for Tapestry training, mentoring and support. Contact me to
> > learn how I can get you up and productive in Tapestry fast!
> >
> > (971) 678-5210
> > http://howardlewisship.com
> >
> > -
> > 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: Autoloading of spring context into Tapestry registry?

2010-06-23 Thread Inge Solvoll
The wildcard approach worked nicely :)

On Wed, Jun 23, 2010 at 3:15 PM, Inge Solvoll wrote:

> I was thinking the same thing myself, and did some research.
>
>
>   tapestry.use-external-spring-context
>   true
>
>
> Could that config cause the ApplicationContextCustomizer service to never
> be initialized?
>
> Anyway, right now I'm trying your approach, Christopher, with wildcards
> matching of context files.
>
>
> On Wed, Jun 23, 2010 at 2:49 PM, Christophe Cordenier <
> christophe.corden...@gmail.com> wrote:
>
>> Hi
>>
>> How is your Tapestry/Spring configuration ? (see web.xml and tapestry
>> symbols)
>>
>> How is your classpath ?
>>
>> 2010/6/23 Inge Solvoll 
>>
>> > Thanks! Tried that, the method is never hit when I set a breakpoint and
>> the
>> > services aren't exposed. I have tried putting other contribute methods
>> in
>> > that module class and they're hit, just not the one below. I did not
>> make
>> > any changes...
>> >
>> > On Wed, Jun 23, 2010 at 11:36 AM, Igor Drobiazko
>> > wrote:
>> >
>> > > You can contribute to the configuration of
>> ApplicationContextCustomizer
>> > > service.
>> > >
>> > >public static void contributeApplicationContextCustomizer(
>> > >OrderedConfiguration config)
>> {
>> > >
>> > >ApplicationContextCustomizer customizer = new
>> > > ApplicationContextCustomizer() {
>> > >public void customizeApplicationContext(
>> > >ServletContext servletContext,
>> > >ConfigurableWebApplicationContext appContext) {
>> > >
>>  appContext.setConfigLocation("classpath:myContext.xml");
>> > >}
>> > >};
>> > >config.add("MyApplicationContextCustomizer", customizer);
>> > >}
>> > >
>> > >
>> > > On Wed, Jun 23, 2010 at 10:22 AM, Inge Solvoll <
>> inge.tapes...@gmail.com
>> > > >wrote:
>> > >
>> > > > Hi!
>> > > >
>> > > > One of my coworkers has produced a new library (jar) that contains a
>> > > bunch
>> > > > of java classes and a spring xml file. I would really like to be
>> able
>> > to
>> > > > use
>> > > > the normal T5-style dropin for this jar, autoloading the services
>> into
>> > my
>> > > > app registry without the need for further wiring. But there's a
>> spring
>> > > xml
>> > > > file involved, so that won't work out of the box.
>> > > >
>> > > > I'm considering rewriting the classes to support Tapestry IOC
>> instead
>> > of
>> > > > Spring, but that seems a bit unnecessary, considering that spring
>> can
>> > be
>> > > > integrated into Tapestry IOC. So, is there a way to create the
>> spring
>> > > > context from the xml file, and load the provided spring beans into
>> the
>> > T5
>> > > > module?
>> > > >
>> > > > I'm looking at the TapestrySpringFilter for leads, but as far as I
>> can
>> > > see,
>> > > > it only provides support for getting the spring context from the
>> > servlet
>> > > > context...
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Best regards,
>> > >
>> > > Igor Drobiazko
>> > > http://tapestry5.de/blog
>> > >
>> >
>>
>>
>>
>> --
>> Regards,
>> Christophe Cordenier.
>>
>> Developer of wooki @wookicentral.com
>>
>
>


Re: Autoloading of spring context into Tapestry registry?

2010-06-23 Thread Inge Solvoll
I was thinking the same thing myself, and did some research.

   
  tapestry.use-external-spring-context
  true
   

Could that config cause the ApplicationContextCustomizer service to never be
initialized?

Anyway, right now I'm trying your approach, Christopher, with wildcards
matching of context files.


On Wed, Jun 23, 2010 at 2:49 PM, Christophe Cordenier <
christophe.corden...@gmail.com> wrote:

> Hi
>
> How is your Tapestry/Spring configuration ? (see web.xml and tapestry
> symbols)
>
> How is your classpath ?
>
> 2010/6/23 Inge Solvoll 
>
> > Thanks! Tried that, the method is never hit when I set a breakpoint and
> the
> > services aren't exposed. I have tried putting other contribute methods in
> > that module class and they're hit, just not the one below. I did not make
> > any changes...
> >
> > On Wed, Jun 23, 2010 at 11:36 AM, Igor Drobiazko
> > wrote:
> >
> > > You can contribute to the configuration of ApplicationContextCustomizer
> > > service.
> > >
> > >public static void contributeApplicationContextCustomizer(
> > >OrderedConfiguration config) {
> > >
> > >ApplicationContextCustomizer customizer = new
> > > ApplicationContextCustomizer() {
> > >public void customizeApplicationContext(
> > >ServletContext servletContext,
> > >ConfigurableWebApplicationContext appContext) {
> > >appContext.setConfigLocation("classpath:myContext.xml");
> > >}
> > >};
> > >config.add("MyApplicationContextCustomizer", customizer);
> > >}
> > >
> > >
> > > On Wed, Jun 23, 2010 at 10:22 AM, Inge Solvoll <
> inge.tapes...@gmail.com
> > > >wrote:
> > >
> > > > Hi!
> > > >
> > > > One of my coworkers has produced a new library (jar) that contains a
> > > bunch
> > > > of java classes and a spring xml file. I would really like to be able
> > to
> > > > use
> > > > the normal T5-style dropin for this jar, autoloading the services
> into
> > my
> > > > app registry without the need for further wiring. But there's a
> spring
> > > xml
> > > > file involved, so that won't work out of the box.
> > > >
> > > > I'm considering rewriting the classes to support Tapestry IOC instead
> > of
> > > > Spring, but that seems a bit unnecessary, considering that spring can
> > be
> > > > integrated into Tapestry IOC. So, is there a way to create the spring
> > > > context from the xml file, and load the provided spring beans into
> the
> > T5
> > > > module?
> > > >
> > > > I'm looking at the TapestrySpringFilter for leads, but as far as I
> can
> > > see,
> > > > it only provides support for getting the spring context from the
> > servlet
> > > > context...
> > > >
> > >
> > >
> > >
> > > --
> > > Best regards,
> > >
> > > Igor Drobiazko
> > > http://tapestry5.de/blog
> > >
> >
>
>
>
> --
> Regards,
> Christophe Cordenier.
>
> Developer of wooki @wookicentral.com
>


Re: Autoloading of spring context into Tapestry registry?

2010-06-23 Thread Inge Solvoll
Thanks! Tried that, the method is never hit when I set a breakpoint and the
services aren't exposed. I have tried putting other contribute methods in
that module class and they're hit, just not the one below. I did not make
any changes...

On Wed, Jun 23, 2010 at 11:36 AM, Igor Drobiazko
wrote:

> You can contribute to the configuration of ApplicationContextCustomizer
> service.
>
>public static void contributeApplicationContextCustomizer(
>OrderedConfiguration config) {
>
>ApplicationContextCustomizer customizer = new
> ApplicationContextCustomizer() {
>public void customizeApplicationContext(
>ServletContext servletContext,
>ConfigurableWebApplicationContext appContext) {
>appContext.setConfigLocation("classpath:myContext.xml");
>}
>};
>config.add("MyApplicationContextCustomizer", customizer);
>}
>
>
> On Wed, Jun 23, 2010 at 10:22 AM, Inge Solvoll  >wrote:
>
> > Hi!
> >
> > One of my coworkers has produced a new library (jar) that contains a
> bunch
> > of java classes and a spring xml file. I would really like to be able to
> > use
> > the normal T5-style dropin for this jar, autoloading the services into my
> > app registry without the need for further wiring. But there's a spring
> xml
> > file involved, so that won't work out of the box.
> >
> > I'm considering rewriting the classes to support Tapestry IOC instead of
> > Spring, but that seems a bit unnecessary, considering that spring can be
> > integrated into Tapestry IOC. So, is there a way to create the spring
> > context from the xml file, and load the provided spring beans into the T5
> > module?
> >
> > I'm looking at the TapestrySpringFilter for leads, but as far as I can
> see,
> > it only provides support for getting the spring context from the servlet
> > context...
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de/blog
>


Autoloading of spring context into Tapestry registry?

2010-06-23 Thread Inge Solvoll
Hi!

One of my coworkers has produced a new library (jar) that contains a bunch
of java classes and a spring xml file. I would really like to be able to use
the normal T5-style dropin for this jar, autoloading the services into my
app registry without the need for further wiring. But there's a spring xml
file involved, so that won't work out of the box.

I'm considering rewriting the classes to support Tapestry IOC instead of
Spring, but that seems a bit unnecessary, considering that spring can be
integrated into Tapestry IOC. So, is there a way to create the spring
context from the xml file, and load the provided spring beans into the T5
module?

I'm looking at the TapestrySpringFilter for leads, but as far as I can see,
it only provides support for getting the spring context from the servlet
context...


Re: T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Thanks!

Don't see how ComponentSource helps, how does it get me to the point where I
can retrieve a named block from a page/component?

On Sat, Jun 19, 2010 at 7:43 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Sat, 19 Jun 2010 13:52:04 -0300, Inge Solvoll 
> wrote:
>
>  Been doing a lot of searching today to find leads, and I think I got
>> something in BeanBlockOverrideSourceImpl.
>>
>
> That's where I learned how the BeanEditor/BeanEditSource blocks work. :)
>
>
>  Using PageRequestCache and page.getRootElement().getBlock(blockId) seems
>> to be a promising lead. This way I can have a Strategy service that returns
>> the page name that contains display blocks for the given entity object.
>>
>
> You're on the right path . . .
>
>
>  I feel like I'm digging quite deep into the inner mechanics of Tapestry
>> (PageRequestCache is an internal service), but I guess there is no way to
>> avoid that with such advanced requirements?
>>
>
> Use ComponentSource instead. It uses PageRequestCache internally (can't
> remember if directly or indirectly).
>
> --
> 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: T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Been doing a lot of searching today to find leads, and I think I got
something in BeanBlockOverrideSourceImpl.

Using PageRequestCache and page.getRootElement().getBlock(blockId) seems to
be a promising lead. This way I can have a Strategy service that returns the
page name that contains display blocks for the given entity object.

I feel like I'm digging quite deep into the inner mechanics of Tapestry
(PageRequestCache is an internal service), but I guess there is no way to
avoid that with such advanced requirements?


On Sat, Jun 19, 2010 at 12:14 PM, Inge Solvoll wrote:

> Hi!
>
> I'm trying to migrate our company's software over to a more plugin oriented
> architecture.
>
> So far I've come up with some services that utilize the Strategy pattern to
> produce information about different modules in our system, without the core
> module knowing anything about their implementation. Detail modules push info
> to the core module by contributing to my strategy service.
>
> My next challenge is to aquire components the same way. More specifically,
> I want some core application page /component/service to lookup the correct
> component/block for displaying information about a specific module that it
> doesn't know. I would like to do this using the same pattern (strategy).
>
> I think I've seen people on the list talking about creating pages with
> blocks in them, and then access these blocks from the core page. If this is
> true, does anyone have code samples on how to inject, activate and render
> other pages and move some specific block into the current page?
>
> Am I making sense or do you need more/better details?
>
> Inge
>


T5: Using the strategy pattern with components.

2010-06-19 Thread Inge Solvoll
Hi!

I'm trying to migrate our company's software over to a more plugin oriented
architecture.

So far I've come up with some services that utilize the Strategy pattern to
produce information about different modules in our system, without the core
module knowing anything about their implementation. Detail modules push info
to the core module by contributing to my strategy service.

My next challenge is to aquire components the same way. More specifically, I
want some core application page /component/service to lookup the correct
component/block for displaying information about a specific module that it
doesn't know. I would like to do this using the same pattern (strategy).

I think I've seen people on the list talking about creating pages with
blocks in them, and then access these blocks from the core page. If this is
true, does anyone have code samples on how to inject, activate and render
other pages and move some specific block into the current page?

Am I making sense or do you need more/better details?

Inge


Re: reloading not working, what did i break?

2010-06-16 Thread Inge Solvoll
Strange, I've been explicitly told earlier on the mailing list that the
classloader of tomcat works in a way that doesn't allow the reloading
technique used by T5.

Happy to hear that this is wrong :)

On Wed, Jun 16, 2010 at 7:28 PM, Kalle Korhonen
wrote:

> Live class reloading works fine in Tomcat.
>
> Kalle (just combating the misinformation)
>
>
> On Wed, Jun 16, 2010 at 3:31 AM, Inge Solvoll 
> wrote:
> > Unfortunately, live class reloading does not work in tomcat, only jetty.
> >
> > On Wed, Jun 16, 2010 at 12:25 PM, Paul Stanton 
> wrote:
> >
> >> thanks sven,
> >>
> >> does anyone know if there is an equivalent for tomcat?
> >>
> >> also, note that this does not happen all the time, probably 10% of the
> >> time. the class re-loading problem is 100% of the time however.
> >>
> >> regards, paul.
> >>
> >>
> >> Sven Homburg wrote:
> >>
> >>>
> >>>
> http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-with-jettyrun-in-windows
> >>>
> >>> with regards
> >>> Sven Homburg
> >>> Founder of the Chenille Kit Project
> >>> http://chenillekit.codehaus.org
> >>>
> >>>
> >>>
> >>>
> >>> 2010/6/16 Paul Stanton 
> >>>
> >>>
> >>>
> >>>> howard,
> >>>>
> >>>> my application classes are not packed up into jars. they are in .class
> >>>> files on the classpath (web-inf/classes). should they be reloaded?
> >>>>
> >>>> i'm assuming it's due to tapestry extending the classes at runtime,
> and
> >>>> your classloader (via maven/jetty) somehow  handles this.. is there no
> >>>> way
> >>>> to get this type of reloading support when your application classes
> are
> >>>> loose?
> >>>>
> >>>> regards, paul.
> >>>>
> >>>>
> >>>> Howard Lewis Ship wrote:
> >>>>
> >>>>
> >>>>
> >>>>> If classes are packaged up into JARs they will not be live reloaded.
> >>>>> Use Jetty for development even if you use Tomcat for deployment.
> >>>>>
> >>>>> On Tue, Jun 15, 2010 at 3:51 PM, Thiago H. de Paula Figueiredo
> >>>>>  wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> On Tue, 15 Jun 2010 19:45:35 -0300, Paul Stanton <
> p...@mapshed.com.au>
> >>>>>> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> http://tapestry.apache.org/tapestry5.1/guide/reload.html*
> >>>>>>>
> >>>>>>> *Hi all,
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> Hi!
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> I've our project is set up so that tomcat runs from the
> >>>>>>> src/main/webapp
> >>>>>>> dir which contains jars and compiled code. Maven is set up to
> >>>>>>> maintains
> >>>>>>> the
> >>>>>>> jars within src/main/webapp/WEB-INF/lib and src/main/java and
> >>>>>>> src/main/resources compile to /src/main/webapp/WEB-INF/classes.
> >>>>>>>
> >>>>>>> I'm aware that this is not quite the typical setup.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> Why not Jetty, at least when developing?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Quite often a change to a resource such as a TML or a JS referenced
> by
> >>>>>>> an
> >>>>>>> @IncludeJavascript will cause a compile error if the web app is
> >>>>>>> running:
> >>>>>>> ...The project was not built due to "Could not delete
> >>>>>>> '.../src/main/webapp/WEB-INF/classes/com'...
> >>>>>>> and any change to a tapestry page or component fails to
> hot-replace.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> I've seen this problem happening with Jetty too, but only on
> Windows.
> >>>>>> This
> >>>>>> is a problem of file locking, not Tapestry itself or your setup. I
> use
> >>>>>> Linux
> >>>>>> and I've never met this problem. :)
> >>>>>>
> >>>>>> --
> >>>>>> 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
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: reloading not working, what did i break?

2010-06-16 Thread Inge Solvoll
Unfortunately, live class reloading does not work in tomcat, only jetty.

On Wed, Jun 16, 2010 at 12:25 PM, Paul Stanton  wrote:

> thanks sven,
>
> does anyone know if there is an equivalent for tomcat?
>
> also, note that this does not happen all the time, probably 10% of the
> time. the class re-loading problem is 100% of the time however.
>
> regards, paul.
>
>
> Sven Homburg wrote:
>
>>
>> http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-with-jettyrun-in-windows
>>
>> with regards
>> Sven Homburg
>> Founder of the Chenille Kit Project
>> http://chenillekit.codehaus.org
>>
>>
>>
>>
>> 2010/6/16 Paul Stanton 
>>
>>
>>
>>> howard,
>>>
>>> my application classes are not packed up into jars. they are in .class
>>> files on the classpath (web-inf/classes). should they be reloaded?
>>>
>>> i'm assuming it's due to tapestry extending the classes at runtime, and
>>> your classloader (via maven/jetty) somehow  handles this.. is there no
>>> way
>>> to get this type of reloading support when your application classes are
>>> loose?
>>>
>>> regards, paul.
>>>
>>>
>>> Howard Lewis Ship wrote:
>>>
>>>
>>>
 If classes are packaged up into JARs they will not be live reloaded.
 Use Jetty for development even if you use Tomcat for deployment.

 On Tue, Jun 15, 2010 at 3:51 PM, Thiago H. de Paula Figueiredo
  wrote:




> On Tue, 15 Jun 2010 19:45:35 -0300, Paul Stanton 
> wrote:
>
>
>
>
>
>> http://tapestry.apache.org/tapestry5.1/guide/reload.html*
>>
>> *Hi all,
>>
>>
>>
>>
> Hi!
>
>
>
>
>
>> I've our project is set up so that tomcat runs from the
>> src/main/webapp
>> dir which contains jars and compiled code. Maven is set up to
>> maintains
>> the
>> jars within src/main/webapp/WEB-INF/lib and src/main/java and
>> src/main/resources compile to /src/main/webapp/WEB-INF/classes.
>>
>> I'm aware that this is not quite the typical setup.
>>
>>
>>
>>
> Why not Jetty, at least when developing?
>
>
>
>
>
>> Quite often a change to a resource such as a TML or a JS referenced by
>> an
>> @IncludeJavascript will cause a compile error if the web app is
>> running:
>> ...The project was not built due to "Could not delete
>> '.../src/main/webapp/WEB-INF/classes/com'...
>> and any change to a tapestry page or component fails to hot-replace.
>>
>>
>>
>>
> I've seen this problem happening with Jetty too, but only on Windows.
> This
> is a problem of file locking, not Tapestry itself or your setup. I use
> Linux
> and I've never met this problem. :)
>
> --
> 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: cannot submit ajax form using form.submit javascript

2010-06-14 Thread Inge Solvoll
A simple and relatively clean solution:

http://tinybits.blogspot.com/2009/10/missing-javascript.html

On Mon, Jun 14, 2010 at 3:19 AM, Paul Stanton  wrote:

> I found Shawn Brownfield's post from aug 2009:
>
> > The short of this is that there doesn't appear to be a really clean way
> > to do this, though I'd love to be proved wrong.  Here are a few options
> > I see:
> >
> > Option1: The most straightforward way to submit a form with a zone via
> > Ajax would be to programatically click the submit button via Javascript:
> >
> > $(submit_id).click();
>
> I don't actually have a submit button on this form, so I'll need to create
> one and then hide it just to get this working.
>
> Are there any new solutions out there?
>
> Regards, p.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How to enable suggestions when entering the input field

2010-06-11 Thread Inge Solvoll
Excellent :)

Good to know in case someone needs to do this later some time.

Inge

On Thu, Jun 10, 2010 at 4:17 PM, Donarus  wrote:

>
> Hi again,
>   so I tried to construct solution in way, you mentioned.
> Here is my solution.
>
>
>
> Event.observe(autoCompleterTextFieldElementIdPasteHere, 'focus',
> function(event) {
>   $T(autoCompleterTextFieldElementIdPasteHere).autocompleter.activate();
> });
>
>
> This is working as I want .. So THX very much !!!
> Dnrs
>
>
>
>
>
> Inge Solvoll-2 wrote:
> >
> > I checked the scriptaculous docs, looking for a way to manually trigger a
> > server roundtrip. If such a function were available and documented (it is
> > not), you could do this:
> >
> > autoCompleterTextField.observe('focus', function(event) {
> >
> >
> $T('autoCompleterTextField').autoCompleter.goGetSomeAutoCompletionsRightNow();
> >
> > });
> >
> > If you check the sources, you might find out that this is actually
> > possible.
> > I don't know.
> >
> >
> >
> > On Wed, Jun 9, 2010 at 11:54 AM, Donarus  wrote:
> >
> >>
> >> Hi and thanks for your reply!
> >>
> >>  I haven't time at the moment for trying this, but think, that it is
> >> possible way how to resolve my problem. So thanks for that link - I will
> >> try
> >> it as soon as possible and let you know..
> >>
> >> Dnrs
> >>
> >>
> >>
> >>
> >> Josh Canfield wrote:
> >> >
> >> > The autocomplete mixin is based on Scriptaculous's autocompleter.
> >> >
> >> > See if this helps:
> >> >
> >>
> http://blog.ilexius.de/blog-post/2010/02/05/activate-autocompleter-in-scriptaculous-when-entering-a-field-on-focus/
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-enable-suggestions-when-entering-the-input-field-tp28819610p28828142.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-enable-suggestions-when-entering-the-input-field-tp28819610p28843722.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: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-10 Thread Inge Solvoll
I'm trying to find a place where I can post my pre-order :)

On Fri, Jun 11, 2010 at 8:34 AM, Borut Bolčina wrote:

> This week is full of god news!
> -borut
>
> 2010/6/11 Igor Drobiazko 
>
> > Hello folks,
> >
> > great news for all of you who wished my Tapestry 5 book to be translated
> > into English. Manning Publications informed me today that the translation
> > agreement is finalized. We start working on the English version of the
> > book.
> >
> > Read more on my blog:
> >
> >
> >
> http://blog.tapestry5.de/index.php/2010/06/11/manning-publications-translates-my-tapestry-5-book/
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
> > http://tapestry5.de/blog
> >
>


Re: How to enable suggestions when entering the input field

2010-06-10 Thread Inge Solvoll
I checked the scriptaculous docs, looking for a way to manually trigger a
server roundtrip. If such a function were available and documented (it is
not), you could do this:

autoCompleterTextField.observe('focus', function(event) {

$T('autoCompleterTextField').autoCompleter.goGetSomeAutoCompletionsRightNow();

});

If you check the sources, you might find out that this is actually possible.
I don't know.



On Wed, Jun 9, 2010 at 11:54 AM, Donarus  wrote:

>
> Hi and thanks for your reply!
>
>  I haven't time at the moment for trying this, but think, that it is
> possible way how to resolve my problem. So thanks for that link - I will
> try
> it as soon as possible and let you know..
>
> Dnrs
>
>
>
>
> Josh Canfield wrote:
> >
> > The autocomplete mixin is based on Scriptaculous's autocompleter.
> >
> > See if this helps:
> >
> http://blog.ilexius.de/blog-post/2010/02/05/activate-autocompleter-in-scriptaculous-when-entering-a-field-on-focus/
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-enable-suggestions-when-entering-the-input-field-tp28819610p28828142.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: Submit component issues

2010-06-08 Thread Inge Solvoll
You're not the first one :) I believe this has been fixed for 5.2.

https://issues.apache.org/jira/browse/TAP5-947

On Tue, Jun 8, 2010 at 9:42 AM, Paul Stanton  wrote:

> I'm keen for peoples opinions regarding whether this is a bug or not.
>
> 
> >>>
> 
> >>>
> 
> >>>
> 

Re: OnEvent Problem

2010-06-08 Thread Inge Solvoll
The formatting is caused by the &&, which are special XML chars that
tapestry templates don't like.

The best solution is to provide your static javascript in a file that is
included with @IncludeJavascriptLibrary, not include it inline like this.

If you want to keep your solution, putting this at the top of your template
will probably fix your formatting exception problem:

http://www.w3.org/TR/html4/loose.dtd";>


On Tue, Jun 8, 2010 at 9:34 AM, matt22  wrote:

>
> I am using ck/onEvent in template file:
>
>  onCompleteCallback="myOnCompleteFunction" .../>
> ..
>
> 
>
> -
> Without   tags i get Tapestry template formatting exception:
> [com.ctc.wstx.exc.WstxLazyException] Unexpected character
> '&'...
> With  tags i get Prototype exception:
> ...function is not defined.
>
>
> h
> HOW TO SOLVE IT?
> --
> View this message in context:
> http://old.nabble.com/OnEvent-Problem-tp28814299p28814299.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: Class reloading in custom component library

2010-06-04 Thread Inge Solvoll
I'm using file synch in eclipse to copy the newly compiled files to
webapp/WEB-INF/classes. If the class is found there, it overrides the one in
the jar.

On Fri, Jun 4, 2010 at 7:56 AM, Nicolas Bouillon  wrote:

> I'm very interested too if there is a solution to this problem.
>
> On Thu, 3 Jun 2010 12:33:50 + (UTC), Henrik Schlanbusch
>  wrote:
> > Hi
> >
> > I have setup a project in maven 2 where the lowest project
> > (parent) has two sub modules, one with the webapp
> > (tapestry 5) and one with a separate custom made
> > component library. This means  that I have three
> > modules to build (parent, webapp and components).
> > Webapp has a dependency to components in order to be
> > able to use the components. I think this is a
> > sensible division, but maybe not?
> >
> > Anyway my question is whehter it is possible to
> > enable class reloading in the component package so I
> > do not have to restart jetty for each template change/code
> > change. I can change templates and compile classes
> > in the webapp project directly from intellij, but currently
> > i cannot do that from the components package. It would
> > be fantastic if I could.
> >
> > Regards,
> > Henrik
> >
> >
> > -
> > 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: LinkSubmit with Context?

2010-06-02 Thread Inge Solvoll
I made one more change to the AnySubmit.

I have struggled with the fact that context-parameter on Submit component
doesn't play well in a loop. So I created a context parameter for the
AnySubmit, that accepts a single value (Object), and is sent via a hidden
input as well. This way you can trigger events with context in loops.

On Wed, Jun 2, 2010 at 1:58 AM, Robert Zeigler  wrote:

> This looks interesting... maybe I'll pick up this ticket this week.
>
> Robert
>
> On Jun 1, 2010, at 6/16:16 PM , Pierce Wetter wrote:
>
> >
> > On Jun 1, 2010, at 10:17 AM, Inge Solvoll wrote:
> >
> >> Yes there is :)
> >>
> >> https://issues.apache.org/jira/browse/TAP5-1167
> >
> > Darn I already voted for it.
> >
> > Stupid one man/one vote democracy stuff.
> >
> >
> > -
> > 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: LinkSubmit with Context?

2010-06-01 Thread Inge Solvoll
Yes there is :)

https://issues.apache.org/jira/browse/TAP5-1167

On Tue, Jun 1, 2010 at 6:00 PM, Pierce Wetter  wrote:

>
> On Jun 1, 2010, at 4:43 AM, Inge Solvoll wrote:
>
> > I added the value of the input element as context in my AnySubmit mixin,
> > check it out. It is very easy to modify the LinkSubmit, you all should
> > experiment with it :)
> >
> >
> http://tinybits.blogspot.com/2010/05/mixin-to-allow-any-element-to-submit.html
>
>   Is there an issue to add this to T5.2 I can vote for?
>
>  Pierce
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: LinkSubmit with Context?

2010-06-01 Thread Inge Solvoll
I added the value of the input element as context in my AnySubmit mixin,
check it out. It is very easy to modify the LinkSubmit, you all should
experiment with it :)

http://tinybits.blogspot.com/2010/05/mixin-to-allow-any-element-to-submit.html

2010/3/31 Kristian Marinkovic 

> i created https://issues.apache.org/jira/browse/TAP5-1091 by cloning
> TAP-532
>
> i hope i can provide a patch over next monday.
>
> g,
> kris
>
>
>
> Von:Łukasz Jazgar 
> An: Tapestry users 
> Datum:  31.03.2010 13:19
> Betreff:Re: LinkSubmit with Context?
>
>
>
> 2010/3/31 Kristian Marinkovic 
>
> > hi pierce,
> >
> > there was already the jira issue
> > https://issues.apache.org/jira/browse/TAP5-532
> > that was closed as duplicat of
> > https://issues.apache.org/jira/browse/TAP5-194
> > which was not correct.
> >
> > maybe we should reopen it.
> >
> >
> Yes, we should. I also grapple with a problem of lack of context in
> LinkSubmit at the moment.
> This improvement would be great.
> I vote for it. :)
>
> Regards
> Lukasz
>
>


Re: T5: LinkSubmit should be generic

2010-06-01 Thread Inge Solvoll
Sorry for spamming multiple threads, just thought this was important:

It is very easy to provide both a context parameter and the input element
value as context. I did the latter, se my updated blog post:

http://tinybits.blogspot.com/2010/05/mixin-to-allow-any-element-to-submit.html

On Fri, May 28, 2010 at 2:39 PM, paha  wrote:

>
> very strange. well i never used LinkSubmit. but as i said, the code works
> as
> expected (at least from my point of view :) ) only if you change the if
> statement. "as is" the form never gets submitted. i know almost nothing
> about js, and very little about t5. perhaps my code won't work in some
> complex scenario and vice-versa, this code doesn't work in simple case :)
> --
> View this message in context:
> http://old.nabble.com/T5%3A-LinkSubmit-should-be-generic-tp28630552p28706385.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: What happend to Tapestry 5

2010-05-31 Thread Inge Solvoll
Yes, I'm watching the process on the dev-list, and it looks VERY promising!
Great work so far!

On Mon, May 31, 2010 at 9:08 AM, Robin Komiwes wrote:

> There is a discussion about that on tapestry-dev mailing list. If you have
> any idea/suggestion, please feel free to join us! :)
>
> On Mon, May 31, 2010 at 9:04 AM, Inge Solvoll  >wrote:
>
> > By the way, I haven't really missed any bug fixes, T 5.1.0.5 has very
> high
> > quality :)
> >
> > It would be fun though, with a more "live" and visible website and
> > community! Let's make that happen.
> >
> > On Mon, May 31, 2010 at 8:10 AM, Igor Drobiazko <
> igor.drobia...@gmail.com
> > >wrote:
> >
> > > I'm not promising anything but I guess 3-6 months. There has been a
> > > discussion about releasing T5.2 before JavaOne which is in September.
> > >
> > > On Mon, May 31, 2010 at 8:01 AM, Peter Stavrinides <
> > > p.stavrini...@albourne.com> wrote:
> > >
> > > > > Don't worry. Tapestry 5.2 will be released soon.
> > > > What is soon? 3, 6, 9, 12 months?
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Igor Drobiazko" 
> > > > To: "Tapestry users" 
> > > > Sent: Monday, 31 May, 2010 08:56:53 GMT +02:00 Athens, Beirut,
> > Bucharest,
> > > > Istanbul
> > > > Subject: Re: What happend to Tapestry 5
> > > >
> > > > Don't worry. Tapestry 5.2 will be released soon. We've fixed a lot of
> > > bugs
> > > > and added some cool new stuff in the 5.2 trunk. The feature releases
> > will
> > > > be
> > > > more often.
> > > >
> > > > On Mon, May 31, 2010 at 4:38 AM, Hantsy Bai 
> wrote:
> > > >
> > > > > The latest tapestry 5.1 was released one year ago, and there is no
> > > > > improvement and bugfix release in such a long period.
> > > > >
> > > > >
> > > > > On 05/31/2010 10:19 AM, Christian Edward Gruber wrote:
> > > > >
> > > > >> Any ETA on this by the way?  I've seen some of the discussions,
> but
> > > > didn't
> > > > >> get a sense as to when that might be happening.
> > > > >>
> > > > >> Christian.
> > > > >>
> > > > >> On May 30, 2010, at 5:38 PM, Igor Drobiazko wrote:
> > > > >>
> > > > >>  This will hopefully change after the relaunch of the Tapestry's
> web
> > > > site.
> > > > >>> Robin is working on that.
> > > > >>>
> > > > >>> On Sun, May 30, 2010 at 10:32 PM, Jakub Vlasak <
> jwla...@gmail.com>
> > > > >>> wrote:
> > > > >>>
> > > > >>>  I must agree. I am aware of 5.2 only from this list, but there
> is
> > no
> > > > >>>> info about the progress, what is beeing implemented, changes,
> etc.
> > > > >>>>
> > > > >>>> On Sun, May 30, 2010 at 9:42 PM, Inge Solvoll <
> > > > inge.tapes...@gmail.com>
> > > > >>>> wrote:
> > > > >>>>
> > > > >>>>> The man's got a good point. The website makes the project look
> > > > dead...
> > > > >>>>> :)
> > > > >>>>>
> > > > >>>>> On Sun, May 30, 2010 at 8:53 PM, Josh Canfield <
> > > > joshcanfi...@gmail.com
> > > > >>>>> wrote:
> > > > >>>>>
> > > > >>>>>  What is a long time? 5.2 is making progress and 5.1.0.5 isn't
> > that
> > > > >>>>>> old.
> > > > >>>>>>
> > > > >>>>>> -- Josh
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> On May 30, 2010, at 11:15 AM, Hantsy Bai 
> > > wrote:
> > > > >>>>>>
> > > > >>>>>> Hi,
> > > > >>>>>>
> > > > >>>>>>> I have use Tapestry 4 before .
> > > > >>>>>>> Currently I want to promote myself to Tapestry 5(5.1), but I
> > > found
> > > 

Re: [ANNOUNCEMENT] tapestry-watchdog 0.0.1 released!

2010-05-31 Thread Inge Solvoll
Very interesting module! Looking forward to trying it.

Excellent sites and blogs like http://spreadthesource.com/ and
http://tynamo.org are excellent sources of inspiration and entertainment
(yes) for those of us who are hooked on this framework. And great publicity
too!

On Mon, May 31, 2010 at 9:03 AM, Robin Komiwes wrote:

> :D
>
> Your watchdog can send emails right? So you must have integrated some kind
> of email sending solution... I was asking how easily we could reuse this
> part (email integration) for other features.
>
> On Mon, May 31, 2010 at 8:45 AM, Kalle Korhonen
> wrote:
>
> > On Sun, May 30, 2010 at 11:20 PM, Robin Komiwes  >
> > wrote:
> > > Is the email module can be used for others thing easily?
> >
> > Honestly, I can't decode this :) Rephrase?
> >
> > Kalle
> >
> >
> > > On Mon, May 31, 2010 at 7:50 AM, Igor Drobiazko <
> > igor.drobia...@gmail.com>wrote:
> > >
> > >> Please keep on announcing here.
> > >>
> > >> On Mon, May 31, 2010 at 3:43 AM, Kalle Korhonen
> > >> wrote:
> > >>
> > >> > My apologies if announcing Tynamo modules on Tapestry users list
> > >> > offend anybody - if community feels that way, we have no problem
> > >> > keeping the announcements only on Tynamo lists and site. However, as
> > >> > an open source project completely based on Tapestry, I would have
> > >> > thought Tapestry users would generally be interested in our
> releases.
> > >> > In any case, "solicitation" feels pretty degrading. It's not like
> > >> > anybody's making any money out of this. Suppose a vote is on order
> if
> > >> > there are others who feel Tynamo or other related Tapestry projects
> > >> > shouldn't be announcing on Tapestry Users list.
> > >> >
> > >> > Kalle
> > >> >
> > >> >
> > >> > On Sun, May 30, 2010 at 5:43 PM, Paul Stanton 
> > >> wrote:
> > >> > > How do I unsubscribe from tynamo's solicitation without leaving
> the
> > >> > tapestry
> > >> > > users list?
> > >> > >
> > >> > > Kalle Korhonen wrote:
> > >> > >>
> > >> > >> Hey all, it's the Tynamo project here again. Just to keep up with
> > >> > >> releasing something new every month, we are announcing
> > >> > >> tapestry-watchdog, version 0.0.1! This module got released
> sometime
> > >> > >> ago but as a multi-process application that most of the time
> > doesn't
> > >> > >> do much but needs to deliver when the time comes, we took a bit
> > longer
> > >> > >> to test it out. tapestry-watchdog is an "embedded watchdog" that
> > sends
> > >> > >> an email to you right away if something happens to your parent
> > process
> > >> > >> (we've all seen an OutOfMemoryError right?) Configuring
> > >> > >> tapestry-watchdog couldn't be any simpler to configure, but read
> > more
> > >> > >> about it from our tapestry-watchdog guide
> > >> > >> (http://tynamo.org/tapestry-watchdog+guide).
> > >> > >>
> > >> > >> Enjoy,
> > >> > >> Tynamo Team
> > >> > >>
> > >> > >>
> > -
> > >> > >> 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
> > >> >
> > >> >
> > >>
> > >>
> > >> --
> > >> Best regards,
> > >>
> > >> Igor Drobiazko
> > >> http://tapestry5.de/blog
> > >>
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: What happend to Tapestry 5

2010-05-31 Thread Inge Solvoll
By the way, I haven't really missed any bug fixes, T 5.1.0.5 has very high
quality :)

It would be fun though, with a more "live" and visible website and
community! Let's make that happen.

On Mon, May 31, 2010 at 8:10 AM, Igor Drobiazko wrote:

> I'm not promising anything but I guess 3-6 months. There has been a
> discussion about releasing T5.2 before JavaOne which is in September.
>
> On Mon, May 31, 2010 at 8:01 AM, Peter Stavrinides <
> p.stavrini...@albourne.com> wrote:
>
> > > Don't worry. Tapestry 5.2 will be released soon.
> > What is soon? 3, 6, 9, 12 months?
> >
> >
> > - Original Message -
> > From: "Igor Drobiazko" 
> > To: "Tapestry users" 
> > Sent: Monday, 31 May, 2010 08:56:53 GMT +02:00 Athens, Beirut, Bucharest,
> > Istanbul
> > Subject: Re: What happend to Tapestry 5
> >
> > Don't worry. Tapestry 5.2 will be released soon. We've fixed a lot of
> bugs
> > and added some cool new stuff in the 5.2 trunk. The feature releases will
> > be
> > more often.
> >
> > On Mon, May 31, 2010 at 4:38 AM, Hantsy Bai  wrote:
> >
> > > The latest tapestry 5.1 was released one year ago, and there is no
> > > improvement and bugfix release in such a long period.
> > >
> > >
> > > On 05/31/2010 10:19 AM, Christian Edward Gruber wrote:
> > >
> > >> Any ETA on this by the way?  I've seen some of the discussions, but
> > didn't
> > >> get a sense as to when that might be happening.
> > >>
> > >> Christian.
> > >>
> > >> On May 30, 2010, at 5:38 PM, Igor Drobiazko wrote:
> > >>
> > >>  This will hopefully change after the relaunch of the Tapestry's web
> > site.
> > >>> Robin is working on that.
> > >>>
> > >>> On Sun, May 30, 2010 at 10:32 PM, Jakub Vlasak 
> > >>> wrote:
> > >>>
> > >>>  I must agree. I am aware of 5.2 only from this list, but there is no
> > >>>> info about the progress, what is beeing implemented, changes, etc.
> > >>>>
> > >>>> On Sun, May 30, 2010 at 9:42 PM, Inge Solvoll <
> > inge.tapes...@gmail.com>
> > >>>> wrote:
> > >>>>
> > >>>>> The man's got a good point. The website makes the project look
> > dead...
> > >>>>> :)
> > >>>>>
> > >>>>> On Sun, May 30, 2010 at 8:53 PM, Josh Canfield <
> > joshcanfi...@gmail.com
> > >>>>> wrote:
> > >>>>>
> > >>>>>  What is a long time? 5.2 is making progress and 5.1.0.5 isn't that
> > >>>>>> old.
> > >>>>>>
> > >>>>>> -- Josh
> > >>>>>>
> > >>>>>>
> > >>>>>> On May 30, 2010, at 11:15 AM, Hantsy Bai 
> wrote:
> > >>>>>>
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>>> I have use Tapestry 4 before .
> > >>>>>>> Currently I want to promote myself to Tapestry 5(5.1), but I
> found
> > it
> > >>>>>>>
> > >>>>>> had
> > >>>>
> > >>>>> not been updated for a long time.
> > >>>>>>> What means to Tapestry project?
> > >>>>>>>
> > >>>>>>> --
> > >>>>>>> Hantsy Bai
> > >>>>>>> Guangzhou, China
> > >>>>>>> http://hantsy.blogspot.com
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > -
> > >>>>>>>
> > >>>>>>> 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
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>> --
> > >>> Best regards,
> > >>>
> > >>> Igor Drobiazko
> > >>> http://tapestry5.de/blog
> > >>>
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > >> For additional commands, e-mail: users-h...@tapestry.apache.org
> > >>
> > >>
> > >>
> > >
> > > --
> > > Hantsy Bai
> > > Guangzhou, China
> > > http://hantsy.blogspot.com
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
> > http://tapestry5.de/blog
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de/blog
>


Re: What happend to Tapestry 5

2010-05-30 Thread Inge Solvoll
The man's got a good point. The website makes the project look dead... :)

On Sun, May 30, 2010 at 8:53 PM, Josh Canfield wrote:

> What is a long time? 5.2 is making progress and 5.1.0.5 isn't that old.
>
> -- Josh
>
>
> On May 30, 2010, at 11:15 AM, Hantsy Bai  wrote:
>
>  Hi,
>> I have use Tapestry 4 before .
>> Currently I want to promote myself to Tapestry 5(5.1), but I found it had
>> not been updated for a long time.
>> What means to Tapestry project?
>>
>> --
>> Hantsy Bai
>> Guangzhou, China
>> http://hantsy.blogspot.com
>>
>>
>> -
>> 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: T5: LinkSubmit should be generic

2010-05-28 Thread Inge Solvoll
Don't know, I only copied the code from LinkSubmit and did some very minor
changes, not including the stuff you're listing here :)

On Fri, May 28, 2010 at 2:09 PM, paha  wrote:

>
> Hi Inge,
>
> tried you code today. doesn't seem to work. maybe i'm using it incorrectly.
> i have following template
>
>
>
> > 
> >  >   t:mixins="anySubmit" t:event="selected"
> > t:clientEvent="change"/>
> >
> > 
> >
>
>
> this part in if
>  if (onsubmit == undefined || onsubmit.call(window.document, event))
>{
>this.createHidden();
>this.form.submit();
>}
> never gets called because onsubmit.call(window.document, event) ==
> undefined
> and the form is never submitted. but if you change  to
> if (onsubmit == undefined || onsubmit.call(window.document, event) ==
> undefined)
> everything works as expected.
>
> is it a bug, or i just don't get how this mixin was supposed to work?
> --
> View this message in context:
> http://old.nabble.com/T5%3A-LinkSubmit-should-be-generic-tp28630552p28706046.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: T5: LinkSubmit should be generic

2010-05-25 Thread Inge Solvoll
https://issues.apache.org/jira/browse/TAP5-1167

On Fri, May 21, 2010 at 4:07 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 21 May 2010 10:55:17 -0300, Bryan Lewis 
> wrote:
>
>  Cool.  It reminds me of a question I've been meaning to ask.
>>
>
> LinkSubmit is a component, but we could have a mixin like Inge suggested.
> :)
>
>
>  What's the best way to define the default value for component parameters?
>> Is it:
>>
>>@Parameter(defaultPrefix = BindingConstants.LITERAL)
>>private String clientEvent = "change";
>>
>> or:
>>
>>@Parameter(value = "change", defaultPrefix = BindingConstants.LITERAL)
>>private String clientEvent;
>>
>> or some method with a name starting with "default"?  I think I've seen all
>> three usages.
>>
>
> If the default is constant, I use @Parameter(value = "change"). If not, I
> use a defaultXXX() method.
>
>
> --
> 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: T5: LinkSubmit should be generic

2010-05-21 Thread Inge Solvoll
You're right, it was the blog tool that stripped it off :) Fixed now.

On Fri, May 21, 2010 at 12:07 PM, paha  wrote:

>
> there is a small compilation issue - ProcessSubmission should inherit from
> ComponentAction, not from ComponentAction, shouldn't it?
>
>
> --
> View this message in context:
> http://old.nabble.com/T5%3A-LinkSubmit-should-be-generic-tp28630552p28631907.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: T5: LinkSubmit should be generic

2010-05-21 Thread Inge Solvoll
Forget the question, I tested it myself and it works :)

See the blog post for the complete working solution, that enables any
element to submit the form and trigger an event, like a regular submit.

http://tinybits.blogspot.com/2010/05/mixin-to-allow-any-element-to-submit.html

On Fri, May 21, 2010 at 9:29 AM, Inge Solvoll wrote:

> After looking at the source code for the LinkSubmit core component, I see a
> lot of potential for a more generic component/mixin that could solve lots of
> other problems.
>
> What I need right now (and quite often) is a Select component that submits
> the form and triggers an event to let the component class know that it was
> the source of the submit. The LinkSubmit source code is very close to doing
> this, the only difference is that it insists on rendering a link.
>
> My questions is:
>
> Is it possible to encapsulate this in a mixin, named something like
> "AnySubmit"? It would only need parameters for "event" and "clientEvent".
>
> I tried, but I don't see how I can use a mixin and still trigger an event
> on submit using ComponentAction. See modified code from LinkSubmit below, is
> this possible to do in a mixin on any component?
>
> private static class ProcessSubmission implements
> ComponentAction {
>
> private final String clientId;
>
> public ProcessSubmission(String clientId) {
>   this.clientId = clientId;
> }
>
> public void execute(MySubmitMixinClass component) {
>   component.processSubmission(clientId);
> }
>   }
>


T5: LinkSubmit should be generic

2010-05-21 Thread Inge Solvoll
After looking at the source code for the LinkSubmit core component, I see a
lot of potential for a more generic component/mixin that could solve lots of
other problems.

What I need right now (and quite often) is a Select component that submits
the form and triggers an event to let the component class know that it was
the source of the submit. The LinkSubmit source code is very close to doing
this, the only difference is that it insists on rendering a link.

My questions is:

Is it possible to encapsulate this in a mixin, named something like
"AnySubmit"? It would only need parameters for "event" and "clientEvent".

I tried, but I don't see how I can use a mixin and still trigger an event on
submit using ComponentAction. See modified code from LinkSubmit below, is
this possible to do in a mixin on any component?

private static class ProcessSubmission implements
ComponentAction {

private final String clientId;

public ProcessSubmission(String clientId) {
  this.clientId = clientId;
}

public void execute(MySubmitMixinClass component) {
  component.processSubmission(clientId);
}
  }


Re: 5.2.0-SNAPSHOT repositories are down?

2010-05-18 Thread Inge Solvoll
Thanks for helping me here!

Must be something wrong with our local NEXUS server then, I get this:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://tapestry.apache.org -> quickstart (Tapestry 5.2.0-SNAPSHOT
Quickstart Project)
2: http://tapestry.apache.org -> tapestry-archetype (Tapestry 4.1.6
Archetype)
Choose a number: : 1
Choose version:
1: 5.0.19
2: 5.1.0.5
3: 5.2.0-SNAPSHOT
Choose a number: : 3
[INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking for
updates from quickstart-repo
Downloading:
http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository
quickstart-repo (https://repository.apache.org/snapshots/)
Downloading:
http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository central (
http://central)
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] The desired archetype does not exist
(org.apache.tapestry:quickstart:5.2.0-SNAPSHOT)
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 20 seconds
[INFO] Finished at: Tue May 18 11:42:00 CEST 2010
[INFO] Final Memory: 10M/19M


On Tue, May 18, 2010 at 11:32 AM, Andreas Andreou  wrote:

> why 5.1.0.5 ? when you run "mvn archetype:generate
> -DarchetypeCatalog=http://tapestry.apache.org";
> it gives (i just tried fyi):
>
> Choose archetype:
> 1: http://tapestry.apache.org -> quickstart (Tapestry 5.2.0-SNAPSHOT
> Quickstart Project)
> 2: http://tapestry.apache.org -> quickstart (Tapestry 5.1.0.5
> Quickstart Project)
> 3: http://tapestry.apache.org -> quickstart (Tapestry 5.0.19 Quickstart
> Project)
> 4: http://tapestry.apache.org -> tapestry-archetype (Tapestry 4.1.6
> Archetype)
> Choose a number:  (1/2/3/4): 1
>
> Downloading:
> https://repository.apache.org/snapshots//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-20100517.063011-68.jar
> 56K downloaded  (quickstart-5.2.0-20100517.063011-68.jar)
>
> e.t.c.
>
> On Tue, May 18, 2010 at 12:07, Inge Solvoll 
> wrote:
> > That archetype leads me to choosing 5.1.0.5.
> >
> > I've tried tons of different repository urls here, none working. Does
> anyone
> > have one that is proven to work?
> >
> > On Tue, May 18, 2010 at 10:53 AM, Andreas Andreou 
> wrote:
> >
> >> Hi, try
> >> mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org
> >>
> >> Also, we've starting using apache's infrastructure to host the snapshots
> >> so:
> >> http://repository.apache.org/snapshots
> >>
> >>
> >> On Tue, May 18, 2010 at 10:38, Inge Solvoll 
> >> wrote:
> >> > I'm trying to switch my T5 version to 5.2.0 in maven, but it wasn't
> able
> >> to
> >> > download. I then tried to run the archetype, see the console output
> >> below.
> >> >
> >> > I checked this url:
> >> >
> >> >
> >>
> http://tapestry.formos.com/maven-snapshot-repository/org/apache/tapestry/tapestry-core/
> >> >
> >> > So the repository seems to be up. What am I doing wrong?
> >> >
> >> >
> >> >
> >> > C:\dev\testing>mvn archetype:generate -DarchetypeCatalog=
> >> > http://tapestry.formos.com/maven-snapshot-repository
> >> > [INFO] Scanning for projects...
> >> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> >> > [INFO]
> >> >
> -

Re: 5.2.0-SNAPSHOT repositories are down?

2010-05-18 Thread Inge Solvoll
That archetype leads me to choosing 5.1.0.5.

I've tried tons of different repository urls here, none working. Does anyone
have one that is proven to work?

On Tue, May 18, 2010 at 10:53 AM, Andreas Andreou  wrote:

> Hi, try
> mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org
>
> Also, we've starting using apache's infrastructure to host the snapshots
> so:
> http://repository.apache.org/snapshots
>
>
> On Tue, May 18, 2010 at 10:38, Inge Solvoll 
> wrote:
> > I'm trying to switch my T5 version to 5.2.0 in maven, but it wasn't able
> to
> > download. I then tried to run the archetype, see the console output
> below.
> >
> > I checked this url:
> >
> >
> http://tapestry.formos.com/maven-snapshot-repository/org/apache/tapestry/tapestry-core/
> >
> > So the repository seems to be up. What am I doing wrong?
> >
> >
> >
> > C:\dev\testing>mvn archetype:generate -DarchetypeCatalog=
> > http://tapestry.formos.com/maven-snapshot-repository
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO]
> > 
> > [INFO] Building Maven Default Project
> > [INFO]task-segment: [archetype:generate] (aggregator-style)
> > [INFO]
> > 
> > [INFO] Preparing archetype:generate
> > [INFO] No goals needed for project - skipping
> > [INFO] [archetype:generate {execution: default-cli}]
> > [INFO] Generating project in Interactive mode
> > [INFO] No archetype defined. Using maven-archetype-quickstart
> > (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> > Choose archetype:
> > 1: http://tapestry.formos.com/maven-snapshot-repository -> quickstart
> > (Tapestry 5.2.0-SNAPSHOT Quickstart Project)
> > Choose a number: : 1
> > [INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking
> for
> > updates from quickstart-repo
> > [INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking
> for
> > updates from central
> > Downloading:
> >
> http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
> > [INFO] Unable to find resource
> > 'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository
> > quickstart-repo (http://tapestry.formos.com/maven-snapshot-repository)
> > Downloading:
> >
> http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
> > [INFO] Unable to find resource
> > 'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository central
> (
> > http://central)
> > [INFO]
> > 
> > [ERROR] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] The desired archetype does not exist
> > (org.apache.tapestry:quickstart:5.2.0-SNAPSHOT)
> > [INFO]
> > 
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > 
> > [INFO] Total time: 9 seconds
> > [INFO] Finished at: Tue May 18 09:34:00 CEST 2010
> > [INFO] Final Memory: 10M/19M
> > [INFO]
> > 
> > C:\dev\testing>
> >
>
>
>
> --
> 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
>
>


5.2.0-SNAPSHOT repositories are down?

2010-05-18 Thread Inge Solvoll
I'm trying to switch my T5 version to 5.2.0 in maven, but it wasn't able to
download. I then tried to run the archetype, see the console output below.

I checked this url:

http://tapestry.formos.com/maven-snapshot-repository/org/apache/tapestry/tapestry-core/

So the repository seems to be up. What am I doing wrong?



C:\dev\testing>mvn archetype:generate -DarchetypeCatalog=
http://tapestry.formos.com/maven-snapshot-repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://tapestry.formos.com/maven-snapshot-repository -> quickstart
(Tapestry 5.2.0-SNAPSHOT Quickstart Project)
Choose a number: : 1
[INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking for
updates from quickstart-repo
[INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking for
updates from central
Downloading:
http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository
quickstart-repo (http://tapestry.formos.com/maven-snapshot-repository)
Downloading:
http://mycompany.com/nexus/content/groups/public//org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/quickstart-5.2.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.tapestry:quickstart:jar:5.2.0-SNAPSHOT' in repository central (
http://central)
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] The desired archetype does not exist
(org.apache.tapestry:quickstart:5.2.0-SNAPSHOT)
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 9 seconds
[INFO] Finished at: Tue May 18 09:34:00 CEST 2010
[INFO] Final Memory: 10M/19M
[INFO]

C:\dev\testing>


Re: AJAX version of setupRender()

2010-05-14 Thread Inge Solvoll
5.2 for RenderNotification mixin, I assume?

On Fri, May 14, 2010 at 6:52 PM, Howard Lewis Ship  wrote:

> I also use the RenderNotification mixin to find out when a component
> has rendered as part of an Ajax partial update; the event handler can
> then collection client ids and add JavaScript.
>
> On Fri, May 14, 2010 at 9:04 AM, Geoff Callender
>  wrote:
> > Thanks Thiago, that is such a great observation about setupRender() being
> invoked in components in a Zone that I will be putting it to use in the next
> release of JumpStart. I think you'll like it.
> >
> > Cheers, Geoff
> >
> > On 12/05/2010, at 6:31 AM, Thiago H. de Paula Figueiredo wrote:
> >
> >> On Tue, 11 May 2010 17:24:04 -0300, Juan Isern 
> wrote:
> >>
> >>> Hi guys,
> >>
> >> Hi!
> >>
> >>> I was wondering if there's a "version" of setupRender() that works for
> AJAX events too.
> >>
> >> onActivate() is invoked in any kind of request. You can use
> ComponentResources.isRendering() to know if it is a rendering request and
> Request.isXHR() if it an AJAX request.
> >>
> >> Another option is to wrap everything inside the Zone in a component. Its
> setupRender() method will be invoked.
> >>
> >> --
> >> 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
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-11 Thread Inge Solvoll
I'm guessing that the grid links are zone-enabled, so clicking them triggers
AJAX calls rather than direct links.

On Tue, May 11, 2010 at 9:17 AM, Radek Terber  wrote:

> The behavoior of combination of JQ tabs and T5 is quite strange. Tabs are
> loaded dynamically using it's links like this:
>
> 
> 
> 
>  t:context="literal:actual">Aktuálne(
> 
> 
> Archív
> 
>  ...etc...
> 
> In case the tab content is loaded firt time, all is OK, tab content is
> loaded sucesfully, T5 server returns content type "text/html" with the page
> rendered.
> But if a T5 grid exists inside the returned content, after click on link in
> grid header (= change sorting), or on pagination links, the T5 server
> returns content type "text/json" and only "{}" = empty JSON. Sort and
> pagination links are rendered as event links by T5 - for example: "
> http://localhost:8080/actual.content.grid.columns:sort/serialNum";. This is
> the only difference.
> If I compared request sent in first time content is loaded with subsequent
> requests (sent in case sort links are clicked on), I did not find any
> differences (except URL): in both cases, the header field
> "X-Requested-With=|XMLHttpRequest|" exists. When I striped out the
> "X-Requested-With" header field (using FF header modification plugin), all
> was OK - server always returned HTML.
>
> Dne 11.5.2010 3:36, Alex Kotchnev napsal(a):
>
>  Radek,
>>what if you just point the URL that's used w/ jQuery tabs to a regular
>> Tapestry page ? If I recall correctly, the jQuery tabs used a, and
>> each
>>   with   inside had an URL of a standalone page that
>> renders
>> w/o any particular layout .
>>
>> Regards,
>>
>> Alex K
>>
>> 2010/5/10 Radek Terber
>>
>>
>>
>>> Hi all
>>>
>>> I try to use jQuery "tabs" together with the T5 grid in simple page - the
>>> page with grid is put as content of a tab (it seams to be good idea due
>>> application could be divided into amall pieces - without static component
>>> dependencies, as it is required by tabs made using T5, and I can combine
>>> T5
>>> pages with other resources in tabs). It works fine, but grid's links for
>>> paging and sorting does not function. I have registered listeners on
>>> "onclick" evets on those links and send AJAX request to T5, but T5 - when
>>> gets XmlHttpRequest - does not render HTML page, but it returns enpty
>>> JSON.
>>> How to tel the T5 to render notmal HTML page in respone on XmlHttpRequest
>>> (aka AJAX request) ?  I cannot use "ajax" variant of grid sorting and
>>> paging, I need just use the page.
>>>
>>> Thanks, radek.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>>>
>>
>>
>
>


Re: How to load tml files from the filesystem instead of classpath?

2010-05-10 Thread Inge Solvoll
I'll do the conclusion:

Isn't it nice that we have a framework that actually allows us to freely
override such a crucial feature in a radically different way than it was
originally intended? The override is very logical and it just works.

This is the number one reason for me to use T5 :)

Thanks to Mauricio for providing a very nice example to the mailing list!

Regards
Inge

On Mon, May 10, 2010 at 9:02 AM, MauricioF wrote:

>
> Thanks Josh for your reply.
>
> After looking the code the reason was 1) TextBlock.tml existed in my
> classpath.
> so my implementation of PageTemplateLocator was never triggered as you
> mentioned.
>
> Now everything works like a charmm!
>
> Thanks everybody
> Mauricio Farache
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/How-to-load-tml-files-from-the-filesystem-instead-of-classpath-tp5009386p5029201.html
> Sent from the Tapestry Users 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: Reading properties from web.xml in Tapestry5 templates

2010-05-05 Thread Inge Solvoll
I guess you could also contribute these strings to be accessible by
SymbolSource? This way you can easily inject single values into the
page/component class like this:

@Property
@Inject
@Symbol("streamServerLocation")
private String streamServerLocation;

On Wed, May 5, 2010 at 2:00 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Wed, 05 May 2010 07:27:25 -0300, Mark Allan 
> wrote:
>
>  Hi All,
>>
>
> Hi!
>
>
>  I've tried a number of variations on the following, but nothing works:
>>${message:comp/env/StreamServerLocation}
>>
>
> As Inge said, the Tapestry philosophy is to implement logic in classes, not
> in templates. You can implement what you want this way:
>
> Page or component class:
> public String getStreamServerLocation() {
>return (String)((new
> InitialContext()).lookup("java:comp/env/StreamServerLocation"))
> }
>
> In your template:
>
> ${streamServerLocation}
>
> Better yet, follow Inge's advice and put this logic in a server, so it can
> be reused all over your application.
>
> --
> 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: Reading properties from web.xml in Tapestry5 templates

2010-05-05 Thread Inge Solvoll
I don't think so. T5 is all about avoiding logic in the templates.

I would recommend creating a service that accesses those properties, if
you're copying the logic around.

On Wed, May 5, 2010 at 12:27 PM, Mark Allan  wrote:

> Hi All,
>
> I've tried searching in vain for an answer to this, so have included my
> search terms throughout this email in case anyone is stuck on the same issue
> in the future - if it looks like I'm using various terms to refer to the
> same thing, that's why!
>
> I've got a T5 app which is almost ready to go live, so I've split it into
> two versions - service and development.  The service version runs under
> Tomcat and the development version runs under Jetty (via mvn jetty:run).
>
> Some URLs and port numbers differ between the service and development
> version, so I have some environment properties defined in WEB-INF/web.xml
> for the service version and WEB-INF/jetty-env.xml for development.  I can
> access those settings within my java files using eg:
>String audioLocation = (String)((new
> InitialContext()).lookup("java:comp/env/StreamServerLocation"));
>
> This works fine and means I don't need to change anything when moving my
> development version into service - I just commit to subversion and then
> 'update' the service directory, compile, package and deploy.  Nice and
> simple.
>
> What I'd like to do now, however, is have a way to access other constants
> in those XML files directly from the Tapestry template TML files without
> having to create properties and accessors in Java.
>
> I've tried a number of variations on the following, but nothing works:
>${message:comp/env/StreamServerLocation}
>
> Is there any way to do this?
>
> Thanks
> Mark
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: T5.1 Setters returning value

2010-04-22 Thread Inge Solvoll
Try decorating instead of overriding. Could require less copying?

On Thu, Apr 22, 2010 at 3:53 PM, paha  wrote:

>
> well, the solution is almost perfect now. "almost" - because i have to
> completely duplicate the code of PropertyAccessImpl replacing 2 calls to
> Introspector.getBeanInfo buried inside private methods :)
>
> here is a service override and final class
>
> public static void contributeServiceOverride(MappedConfiguration Object> configuration) {
>//Allow setters returning object itself to be detected
>configuration.add(PropertyAccess.class, new
> SpringPropertyAccessImpl());
>}
>
>
>
> > package de.cgp.kunden.services;
> >
> > import
> > org.apache.tapestry5.ioc.internal.services.ClassPropertyAdapterImpl;
> > import org.apache.tapestry5.ioc.internal.util.CollectionFactory;
> > import org.apache.tapestry5.ioc.services.ClassPropertyAdapter;
> > import org.apache.tapestry5.ioc.services.PropertyAccess;
> > import org.springframework.beans.BeanUtils;
> >
> > import java.beans.IntrospectionException;
> > import java.beans.PropertyDescriptor;
> > import java.util.Arrays;
> > import java.util.LinkedList;
> > import java.util.List;
> > import java.util.Map;
> >
> > /**
> >  * User: Pasha
> >  * Date: 22.04.2010
> >  * Time: 11:49:43
> >  */
> > public class SpringPropertyAccessImpl implements PropertyAccess {
> >
> > private final Map adapters =
> > CollectionFactory.newConcurrentMap();
> >
> > @Override
> > public Object get(Object instance, String propertyName) {
> > return getAdapter(instance).get(instance, propertyName);
> > }
> >
> > @Override
> > public void set(Object instance, String propertyName, Object value) {
> > getAdapter(instance).set(instance, propertyName, value);
> > }
> >
> > /**
> >  * Clears the cache of adapters and asks the Introspector to clear
> its
> > cache.
> >  */
> > @Override
> > public synchronized void clearCache() {
> > adapters.clear();
> > }
> >
> > @Override
> > public ClassPropertyAdapter getAdapter(Object instance) {
> > return getAdapter(instance.getClass());
> > }
> >
> > @Override
> > public ClassPropertyAdapter getAdapter(Class forClass) {
> > ClassPropertyAdapter result = adapters.get(forClass);
> >
> > if (result == null) {
> > result = buildAdapter(forClass);
> > adapters.put(forClass, result);
> > }
> >
> > return result;
> > }
> >
> > /**
> >  * Builds a new adapter and updates the _adapters cache. This not
> only
> > guards access to the adapter cache, but also
> >  * serializes access to the Java Beans Introspector, which is not
> > thread safe. In addition, handles the case where
> >  * the class in question is an interface, accumulating properties
> > inherited from super-classes.
> >  */
> > private synchronized ClassPropertyAdapter buildAdapter(Class
> forClass)
> > {
> > // In some race conditions, we may hit this method for the same
> > class multiple times.
> > // We just let it happen, replacing the old ClassPropertyAdapter
> > with a new one.
> >
> > try {
> >
> >
> > List descriptors =
> > CollectionFactory.newList();
> >
> > addAll(descriptors, getPropertyDescriptors(forClass));
> >
> > if (forClass.isInterface())
> > addPropertiesFromExtendedInterfaces(forClass, descriptors);
> >
> > return new ClassPropertyAdapterImpl(forClass, descriptors);
> > }
> > catch (Throwable ex) {
> > throw new RuntimeException(ex);
> > }
> > }
> >
> > private PropertyDescriptor[] getPropertyDescriptors(Class forClass) {
> > return BeanUtils.getPropertyDescriptors(forClass);
> > }
> >
> > private  void addAll(List list, T[] array) {
> > list.addAll(Arrays.asList(array));
> > }
> >
> > private void addPropertiesFromExtendedInterfaces(Class forClass,
> > List descriptors) {
> > LinkedList queue = CollectionFactory.newLinkedList();
> >
> > // Seed the queue
> > addAll(queue, forClass.getInterfaces());
> >
> > while (!queue.isEmpty()) {
> > Class c = queue.removeFirst();
> >
> >
> > addAll(descriptors, getPropertyDescriptors(c));
> > addAll(queue, c.getInterfaces());
> > }
> > }
> >
> >
> > }
> >
> >
> --
> View this message in context:
> http://old.nabble.com/T5.1-Setters-returning-value-tp28288048p28329198.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: T5.1 Setters returning value

2010-04-22 Thread Inge Solvoll
Sounds like you did a ServiceOverride without actually realizing it yourself
:)

And you have an excellent solution to your problem. Here is a link that
explains how to not do it using a very very ugly hack :)

http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html

On Thu, Apr 22, 2010 at 2:13 PM, paha  wrote:

>
> Solved the problem with one very very nasty hack, but if somebody
> interested:
>
> i commented the ioc binding for PropertyAccess implementation  in
> org.apache.tapestry5.ioc.services.TapestryIOCModule
> // binder.bind(PropertyAccess.class, PropertyAccessImpl.class);
>
> then i introduced an own implementation in my app via
> binder.bind(PropertyAccess.class, SpringPropertyAccessImpl.class);
> as i said, BeanUtils from spring3 detect unvoid setters flawlessly.
>
>
> Well, my solution is ugly. I have to keep own version of tapsetry-ioc in my
> maven repo. But it is much much better than changing the code in many
> projects that use setter chaining or introducing wrapper classes around the
> domain objects.
>
> I'm quite newbie in tapestry ioc. Is there any clean way to introduce my
> own
> PropertyAccess implementation without hacking into source code? Is there
> any
> possibility of reconsidering setter detection
> in future releases?
> --
> View this message in context:
> http://old.nabble.com/T5.1-Setters-returning-value-tp28288048p28328043.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: Good practices for handling page cleanup

2010-04-19 Thread Inge Solvoll
That's excellent news, I've been struggling with something related to this
lately. Looking forward to upgrading :)

On Mon, Apr 19, 2010 at 3:02 PM, Howard Lewis Ship  wrote:

> This is easier in Tapestry 5.2.
>
> A new lifecycle method, pageReset(), is available (on pages or components).
>
> When a page is first accessed (from another page), the pageReset()
> lifecycle method is invoked.  If you stay on the page (component
> events, ajax events, or page render requests for the same page) then
> no pageReset.  It's when you return to a page from some other page
> that the page is reset.
>
> On Sun, Apr 18, 2010 at 10:01 PM, Juan Isern  wrote:
> >
> > In case someone's interested...
> >
> > The solution was as simple as:
> >
> > @Inject
> > private ComponentEventLinkEncoder cele;
> >
> > (...)
> > return cele.decodePageRenderRequest(request) != null &&
> >cele.decodeComponentEventRequest(request) == null;
> >
> > if that expression is true, then it's a fresh page request and it's safe
> to
> > clean up the session state, which can be achieved by doing:
> >
> > componentResources.discardPersistentFieldChanges();
> >
> > :)
> >
> > Cheerz
> >
> >
> > Juan Isern wrote:
> >>
> >> Alfie, thanks.
> >>
> >> It seems that the isXHR() approach will be good enough but it's nice to
> >> know of other mechanisms in the case the thing gets too complex.
> >>
> >>
> >> Alfie Kirkpatrick wrote:
> >>>
> >>> There's been some discussion on this in the past. The easiest way if
> AJAX
> >>> is your only scenario is probably using request.isXHR(). An alternative
> >>> is to maybe use the ComponentEventLinkEncoder either directly or by
> >>> intercepting it. It knows whether the request is for a page or
> component
> >>> event.
> >>>
> >>> http://markmail.org/message/mug7wv5gueuw6hhj
> >>> http://markmail.org/message/gds72nly2vk5sqm3
> >>>
> >>> Hope it helps,
> >>> Alfie.
> >>>
> >>> -Original Message-
> >>> From: Juan Isern [mailto:juanis...@gmail.com]
> >>> Sent: 14 April 2010 21:01
> >>> To: users@tapestry.apache.org
> >>> Subject: Good practices for handling page cleanup
> >>>
> >>>
> >>> Guys, I've been working with some ajax components that need, to work
> >>> properly, to store data in the session as persistent fields.
> >>>
> >>> I thought onActivate() would be a nice place to clean things up, doing
> it
> >>> at
> >>> the very first moment that a page is requested by the user seems ok.
> >>>
> >>> The problem is that onActivate() gets invoked during ajax requests too.
> >>>
> >>> Is it any way to determine when a request comes from a user that's
> >>> entered
> >>> an address or followed a link to that page, and make sure that request
> >>> does
> >>> not come from ajax or an action link on it? I think that'd be my
> >>> requirement
> >>>
> >>> Thanks again, Juan
> >>> --
> >>> View this message in context:
> >>>
> http://old.nabble.com/Good-practices-for-handling-page-cleanup-tp28247499p28247499.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
> >>>
> >>>
> >>>
> >>
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/Good-practices-for-handling-page-cleanup-tp28247499p28287213.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
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Documentation Request/Suggestion

2010-03-24 Thread Inge Solvoll
Agree!

Would be nice with something a bit more well-structured than the wiki,
though.  The wiki is great for finding examples, but it isn't a great guide
by Geoff's definition.

On Wed, Mar 24, 2010 at 7:45 AM, Peter Stavrinides <
p.stavrini...@albourne.com> wrote:

> We understand that Tapestry commiters are giving up their time to make
> Tapestry what it is, and we are grateful, I think they too are aware of
> these issues and must have some plans in the pipeline to rectify the
> problems.
>
> Nothing being suggested in this post is new, my question is where the
> bottleneck lies? and how can we help? community driven docs (with or without
> changing existing docs) sounds like the most sensible option to me as it
> would lift this burden from the commiters and get more people activly
> involved in growing Tapestry.
>
> Cheers,
> Peter
>
> --
> If you are not an intended recipient of this e-mail, please notify the
> sender, delete it and do not read, act upon, print, disclose, copy, retain
> or redistribute it. Please visit http://www.albourne.com/email.html for
> important additional terms relating to this e-mail.
>
> - Original Message -
> From: "Geoff Callender" 
> To: "Tapestry users" 
> Sent: Wednesday, 24 March, 2010 05:13:22 GMT +02:00 Athens, Beirut,
> Bucharest, Istanbul
> Subject: Re: Documentation Request/Suggestion
>
> I agree too. Users of anything usually need both a Guide and a Reference.
> To me, the Tapestry documentation is much more of a Reference than a Guide,
> and that makes it a source of immense frustration to newbies and the
> experienced alike.
>
> Here's what I mean: A User Reference is usually organised alphabetically
> for quick, well, reference. In contrast, a User Guide is usually organised
> by task, starting with the simplest task (Hello World?!?!) then working
> progressively through the tasks the author thinks you are most likely to
> want to accomplish. Whereas a User Reference includes every last arcane
> detail (because it really must), a User Guide leads you by the hand to what
> it thinks is important, helps you avoid known gotchas, and leaves out
> absolutely everything that doesn't directly contribute to doing the task. A
> Reference often is not focused on the practical. A User Guide must be
> focused on the practical.
>
> To learn from a Reference is very tough indeed. You pretty much have to
> read the entire thing at least twice before you can even judge what's
> actually important and get yourself started.
>
> As for injectables and annotations, I think there's a very practical need
> for something that brings all of them together in a way that all of us users
> can get a handle on them. A key part would be a description of why you might
> use each one, and it should put the stuff you're least likely to use down
> the bottom. Maybe they should even be organised by task?
>
> Cheers,
>
> Geoff
>
> On 24/03/2010, at 12:20 AM, Erick Erickson wrote:
>
> > I'll second Michael's statement, the documentation may exist but you
> > don't even know it's there unless you already know it's there. Tribal
> > knowledge and all that. Sometimes Google even gets me there.
> >
> > But the T5 website is NOT my first choice exactly because of its
> > organization, and it *should* be my first choice.
> >
> > Most of my complaints would be alleviated by a simple search
> > capability on the tapestry5 website, the lack thereof is my main
> > difficulty in using it. The organization may make perfect sense to
> > someone who really understands the thinking behind T5, but to new
> > folks, it's a mystery.
> >
> > Clearly lots and lots of work has been put into the Tapestry website
> > and documentation. I imagine it's tempting for people who *have* put
> > the effort into the docs to reply "Read The Field Manual" (Look, it's
> > a public board, "Field" will do). That work would be much more valuable
> > to many more of us if it were searchable. It would certainly reduce
> > my frustration level.
> >
> > Here's an example of trying to find something utterly trivial. Say I want
> > to learn about the @Persist annotation. I go to the top level and click
> > on "annotations", and you get a page that is utterly useless, to whit:
> > http://tapestry.apache.org/tapestry5.1/tapestry5-annotations/
> > Aha, I look again at the top-level and I find a "Persistent State"
> > link. Nope.
> > http://tapestry.apache.org/tapestry5.1/guide/appstate.html
> >
> > Hmmm, maybe I clicked one link too low, there's the
> > "Persistent page data" link at:
> > http://tapestry.apache.org/tapestry5.1/guide/persist.html
> > Aha! cool, that page talks about @Persist. Except.
> > it has no example of *how* to implement one of the
> > three strategies.
> > But look! There's a link to the javadoc for @Persist! I'm saved!
> > Nope, that page has no example either.
> >
> http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/Persist.html
> >
> > At this point I give up and search the

Re: Documentation Request/Suggestion

2010-03-23 Thread Inge Solvoll
You're right about the information being technically available, but to
newbies it isn't.

I absolutely love the idea of a page that presents a "best of" list of
services, with hands-on examples and simple explanations. For me, T5 is all
about common patterns. I always use RenderSupport for doing excactly the
same thing in all my pages. Why not document something like that in a user
friendly way?

What I'm trying to say is that information about a small subset of T5
features is sufficient for many users. But the existing docs are VERY
generic, covering all aspects at once.

If we want world domination for Tapestry5, we need to make stupid users
happy :)



On Tue, Mar 23, 2010 at 7:42 AM, Igor Drobiazko wrote:

> Why is the javadoc insufficient? All the services are located in few
> packages depending on the module they were created. Some of them are:
>
>
> http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ioc/services/package-frame.html
>
> http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/package-frame.html
>
> http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/hibernate/package-frame.html
>
> Furthermore there is a page describing all the resources that are
> injectable:
>
> http://tapestry.apache.org/tapestry5.1/tapestry-ioc/injection.html
>
> You can also open the page ServiceStatus and read its javadoc, if you want
> to find an appropriate service:
>
> http://tapestry.apache.org/tapestry5.1/guide/servicestatus.html
>
> In summary I would say this issue should be closed as invalid. Tapestry has
> over 100 services which are good documented in javadoc. Maybe a wiki
> article
> which is maintained by the community is a better choice. page. We could
> also
> provide a new annotation @Injectable which is used to mark the interfaces
> that are meant for injection.
>
> On Tue, Mar 23, 2010 at 12:54 AM, Michael Gentry  >wrote:
>
> > Created: https://issues.apache.org/jira/browse/TAP5-1070
> >
> > I'm not sure if what I meant by Injectables makes sense, but basically
> > I meant all things supplied by T5 that you can @Inject (such as
> > ComponentResources).  I had been using T5 for 2-3 months and had no
> > idea ComponentResources even existed and then I saw an e-mail to this
> > list by Jun Tsai showing it being used to do something that was
> > precisely what I needed to solve a particular problem.  Great timing,
> > but it was also quite lucky.  If there was a reference of all things I
> > could inject, I might've been able to read through them and have a
> > much better idea of things that are available.
> >
> > Thanks again!
> >
> > mrg
> >
> >
> > On Mon, Mar 22, 2010 at 3:11 PM, Thiago H. de Paula Figueiredo
> >  wrote:
> > > On Mon, 22 Mar 2010 16:48:31 -0300, Michael Gentry <
> > mgen...@masslight.net>
> > > wrote:
> > >
> > >> Hello everyone,
> > >
> > > Hi!
> > >
> > > For annotations,
> > >
> > >> All I'm imagining here is a table for each that lists all of the
> > >> annotations and injectables that ship with Tapestry, a short
> > >> description as to what they do, and perhaps links to examples/detailed
> > >> explanations of how to use them.  Another useful column would be what
> > >> version of Tapestry it was introduced.
> > >
> > > Please post a JIRA about it. Seems a very good suggestion to me.
> > >
> > > --
> > > Thiago H. de Paula Figueiredo
> > > Independent Java, Apache Tapestry 5 and Hibernate consultant,
> developer,
> > and
> > > instructor
> > > Owner, software architect and developer, 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
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de/blog
>


Re: Tapestry in Action on SeeSaw

2010-03-17 Thread Inge Solvoll
Please send the link if/when there is a screencast! :)

On Wed, Mar 17, 2010 at 5:42 PM, Ben Gidley  wrote:

> I believe they will be recording it - so you should be able to catch a
> screen/pod cast.
> Ben Gidley
>
> www.gidley.co.uk
> b...@gidley.co.uk
>
>
> On Wed, Mar 17, 2010 at 3:18 PM, Howard Lewis Ship 
> wrote:
>
> > Will it be recorded?  I'd really like to see this, but I can't jump
> > over to London for it !
> >
> > On Wed, Mar 17, 2010 at 2:11 AM, Ben Gidley  wrote:
> > > Hi,
> > >
> > > If you are interested I am doing at free talk at Skillsmatter in London
> > next
> > > Tuesday (23rd March 2010) going through how we used tapestry on
> > seesaw.com
> > >
> > > Details of the talk and directions are at
> > > http://skillsmatter.com/event/java-jee/tapestry-5-in-action/zx-486
> > >
> > > Ben Gidley
> > >
> > > www.gidley.co.uk
> > > b...@gidley.co.uk
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> >
> > The source for Tapestry training, mentoring and support. Contact me to
> > learn how I can get you up and productive in Tapestry fast!
> >
> > (971) 678-5210
> > http://howardlewisship.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Run Tapestry 5.1 with JBoss 5.1

2010-03-16 Thread Inge Solvoll
We are running t5 on jboss 5.1 without problems, with the following fix.

Appmodule

  /**
   * Needed by Jboss 5 classloader for the application to work
   *
   * @param configuration
   */
  public void contributeAlias(Configuration
configuration) {
configuration.add(AliasContribution.create(ClasspathURLConverter.class,
new Jboss5ClasspathURLConverter()));
  }


Implementation:

/**
 * This service override is needed for T5 to work with Jboss 5.
 *
 * http://www.nabble.com/JBoss5-and-T5-configuration--td21041727.html
 *
 * @author Inge
 *
 */
public class Jboss5ClasspathURLConverter implements ClasspathURLConverter {

  public URL convert(URL url) {

if (url.getProtocol().equals("vfszip")) {
  try {
String urlStr = "jar:file:" + url.getPath().replaceAll(".jar/",
".jar!/");
url = new URL(urlStr);
  }
  catch (MalformedURLException e) {
throw new IllegalStateException("Should not get here. url = " +
url);
  }
}

return url;
  }

}


On Tue, Mar 16, 2010 at 12:36 PM, jaques robert
wrote:

> Hello,
>
> I'm trying to run Tapestry 5.1 with JBoss 5.1. However, I'm still having
> this error :
> <<
> 09:58:56,329 ERROR [RequestExceptionHandler] Processing of request failed
> with uncaught exception: Unable to resolve 'pagelink' to a component class
> name.  Available component types: (none).
> org.apache.tapestry5.ioc.internal.util.TapestryException: Unable to resolve
> 'pagelink' to a component class name.  Available component types: (none).
> [at classpath:com/pouet/repository/wizard/tapestry/pages/Index.tml, line 15]
>at
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java:742)
>at
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614)
> >>
>
>
> I've looked in the mail archive of Tapestry-Users and saw :
>
> <<
>
> ok, I found solution for JBoss 5.1.0.
> It's enough to use the same url
> converter that Geoff pointed out and add "-Djboss.vfs.forceCopy=false"
> to JBoss JAVA_OPTS. At least, it solved the problem for me :)
> enjoy,
> m.
> >>
>
> So I've added the -Djboss.vfs.forceCopy=false argument, however it doesn't
> solve anything...
>
> I saw this case opened https://issues.apache.org/jira/browse/TAP5-576,
> however the status is "Won't fix" :(
>
> I've read also that providing another implementation of
> ClasspathURLConverter could resolve it : "
> http://www.mail-archive.com/users@tapestry.apache.org/msg31403.html";
>
> However, how can I plug this classpathurlconverter to my existing project ?
>
> Does somebody
> already managed to resolve this problem ?
>
> Regards,
> mondes_engloutis.
>
>
>


Re: T5: Exception page crashing

2010-03-16 Thread Inge Solvoll
Hi!

Just to wrap this up in case someone needs the information later:

After some time, I got the idea to override the default exception reporter
page with my own, and copy the T5 default code into my new exception
reporter. Then I started removing parts from it until it stopped crashing.
It turned out that it was the rendering of "request" that crashed. I don't
have the time to find out excatly what did it, and I don't really need to
either. We primarily need the exception report, we rarely use the session,
request and system property dump so I just removed them all.

It's a big win for us just to have the exception report back on track!

Feedback to the list: A hint about the above approach would have been
extremely useful. I definitely should have thought about that a long time
ago myself...

Thanks anyway :)

Inge


On Thu, Mar 4, 2010 at 9:39 AM, Inge Solvoll wrote:

> I've been wondering about that myself :)
>
> It's probably something related to the fact that I've got Struts 1, T4 and
> T5 running together.
>
> So what you're saying is that I've probably put something in the session
> that has a bad toString(). I guess that's why it often works a few times
> before it crashes...
>
>
> On Wed, Mar 3, 2010 at 9:34 PM, Thiago H. de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> Tapestry 5.1 error page fails when something in the session has a
>> toString() or a getter method that throws some exception when invoked.
>>
>>
>>  Caused by: java.lang.NullPointerException
>>> at
>>> org.apache.jasper.compiler.TagLibraryInfoImpl.toString(TagLibraryInfoImpl.java:127)
>>>
>>
>> Why would a JSP compiler appear in the middle of your Tapestry stack
>> trace?
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
>> and instructor
>> Owner, software architect and developer, 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
>>
>>
>


  1   2   3   4   >