Re: bad secure links

2014-08-25 Thread Alejandro Scandroli
Hey John

Do you have SymbolConstants.HOSTPORT and
SymbolConstants.HOSTPORT_SECURE properly set?
If not, configure them and try again. I think this could be a
manifestation of TAP5-1973.

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

Cheers.
Alejandro.


On Mon, Aug 25, 2014 at 2:16 PM, John  wrote:
> Hi,
>
> Yes I am using 5.3.7.
>
> I added this code as suggested...
>
>   public void 
> contributeMetaDataLocator(MappedConfiguration configuration)
>   {
>   configuration.add(MetaDataConstants.SECURE_PAGE, "true");
>   }
>
>
> The above seems to break my eventlinks in production mode (ok in dev mode), 
> probably a js problem?
>
> Maybe time to look at 5.4, but I am using Tapestry5-jquery and that doesn't 
> work with 5.4!
>
> John
>   - Original Message -
>   From: Thiago H de Paula Figueiredo
>   To: Tapestry users
>   Sent: Monday, August 25, 2014 12:27 AM
>   Subject: Re: bad secure links
>
>
>   On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:
>
>   > I started running my app in production mode but I get these bad links
>   > (the yui compressor throwing exceptions too)
>   >
>   >> 
> href="http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=";>John
>   > Doe
>   >
>   > I've recall seeing this sometime before, I think Tapetsry is trying to
>   > force links to be secure but it gets the protocol wrong, no need for the
>   > oort number either!?
>   >
>   > What is the fix please?
>
>   What's the Tapestry version please? :) I guess it isn't 5.4, as you're
>   using tapestry-yuicompressor, which is deprecated in 5.4 due to too much
>   bugs.
>
>   Anyway, you can customize the handling of secure and non-secure links by
>   overriding, decorating or advising the BaseURLSource service. Looking at
>   the default implementation in 5.4, I cannot see it getting the HTTPS port
>   wrong.
>
>   --
>   Thiago H. de Paula Figueiredo
>   Tapestry, Java and Hibernate consultant and developer
>   http://machina.com.br
>
>   -
>   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>   For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com

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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Kalle Korhonen
On Mon, Aug 25, 2014 at 10:30 AM, Christian Dutaret 
wrote:

> Kalle, that's the whole point - I think - of the "serve modules without
> publishing" option. It just takes the resources from the eclipse target
> directory instead of copying things around.
>

Thanks Christian. I'll have to check out the native Eclipse option myself
then.

Kalle



>
> 2014-08-25 18:13 GMT+02:00 Kalle Korhonen :
>
> > The last I checked, the WTP plugin was still copying the resource files
> > around which is my main beef with it. It causes subtle issues during
> > development since you are not sure whether you are seeing the latest
> > resource file or not immediately after saving. My experiences are from a
> > few years back though and like everything else, it's likely to have been
> > improved since.
> >
> > Kalle
> >
> >
> > On Mon, Aug 25, 2014 at 1:29 AM, Christian Dutaret  >
> > wrote:
> >
> > > Hi all,
> > >
> > > I've seen a lot of people claiming that one should use Sysdeo plugin to
> > > work with Tomcat under eclipse/Maven for T5 development, and that the
> > > standard WTP plugin should be avoided, because it is supposedly buggy
> and
> > > slow.
> > > I've been using WTP plugin for years with other frameworks (including
> > T4),
> > > and I have no problem at all using it for T5 web apps, as long as it is
> > > properly configured. I have live class reloading working, Maven
> > > dependencies picked up just fine, and no Tomcat restarts (and no
> > devloader
> > > to configure).
> > >
> > > I f anyone is interested, here is my configuration (using Tomcat 8 and
> > > latest Eclipse Luna, but should also work with older versions) :
> > > - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for
> JEE
> > > build)
> > > - Server configuration: serve modules without publishing, auto-reload
> > > disabled by default
> > > - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> > > fails - hot deploy does fail but LCR doesn't)
> > >
> > > Christian
> > >
> > >
> > > 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
> > >
> > > > Thanks Kallenow I (hope I) have a clear path
> > > >
> > > >
> > > > Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> > > > > On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti <
> > lube...@archicoop.it>
> > > > > wrote:
> > > > >
> > > > >> Thanks Kalle, maybe I'm starting to figuring it out.
> > > > >> So the devloader enables the container to load classes from paths
> > > > >> aoutside WEB-INF/lib and WEB-INF/classes , right?
> > > > >>
> > > > > That's what I said and that's what the linked resource said.
> > > > >
> > > > >> So if instead of the maven project layout I use the classic WTP
> > > project
> > > > >> layout that has a
> > > > >> WebContent folder which includes WEB-INF/lib and WEB-INF/classes
> and
> > > if
> > > > >> properly configured builds classes from my source folder into
> > > > >> WEB-INF/classes I would get LCR working. Is this correct?
> > > > >>
> > > > > Yes. Deploy as exploded and remember to turn off container
> > > > auto-reloading.
> > > > >
> > > > >> Of course this goes against all the maven stuff that seems to be
> > used
> > > by
> > > > >> the vast majority of T5 devs.
> > > > >>
> > > > > Not only T5 but vast majority of Java devs.
> > > > >
> > > > > Kalle
> > > > >
> > > > >
> > > > >> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> > > > >>> You don't need the devloader for live class reloading. You need
> it
> > to
> > > > be
> > > > >>> able to pick up classes from other locations than /lib or
> /classes,
> > > say
> > > > >>> from your local Maven repo, as explained at the bottom of
> > > > >>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html.
> > Now,
> > > > you
> > > > >>> can technically use the devloader by itself by manually
> configuring
> > > the
> > > > >>> devloader's configuration file but I wouldn't recommend it. (and
> to
> > > > >> others,
> > > > >>> Ivano specifically stated he wants to use Tomcat, not Jetty).
> > > > >>>
> > > > >>> Kalle
> > > > >>>
> > > > >>>
> > > > >>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti <
> > lube...@archicoop.it
> > > >
> > > > >> wrote:
> > > >  Hi everybody I'm a former user of T4 but for many reasons
> > > independent
> > > >  from my will, I had to abandon Tapestry a few years ago, while
> I'm
> > > > still
> > > >  maintaining some web applications.
> > > > 
> > > >  Now I want to step into T5 and I'm following the tutorial.
> > > >  I have set up under Eclipse and successfully running the
> tutorial.
> > > >  Before going further I would like to be sure LCR works (because
> > > > actually
> > > >  doesn't).
> > > > 
> > > >  I have read the Kalle page on setting up tomcat but I would like
> > to
> > > >  avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
> > > >  applications and I'm used to launch Tomcat  via Eclipse Debug
> > > >  Configuration.
> > > > 
> > > >  My question is

Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Christian Dutaret
Ivano, glad I could help.

Kalle, that's the whole point - I think - of the "serve modules without
publishing" option. It just takes the resources from the eclipse target
directory instead of copying things around.

Christian


2014-08-25 18:13 GMT+02:00 Kalle Korhonen :

> The last I checked, the WTP plugin was still copying the resource files
> around which is my main beef with it. It causes subtle issues during
> development since you are not sure whether you are seeing the latest
> resource file or not immediately after saving. My experiences are from a
> few years back though and like everything else, it's likely to have been
> improved since.
>
> Kalle
>
>
> On Mon, Aug 25, 2014 at 1:29 AM, Christian Dutaret 
> wrote:
>
> > Hi all,
> >
> > I've seen a lot of people claiming that one should use Sysdeo plugin to
> > work with Tomcat under eclipse/Maven for T5 development, and that the
> > standard WTP plugin should be avoided, because it is supposedly buggy and
> > slow.
> > I've been using WTP plugin for years with other frameworks (including
> T4),
> > and I have no problem at all using it for T5 web apps, as long as it is
> > properly configured. I have live class reloading working, Maven
> > dependencies picked up just fine, and no Tomcat restarts (and no
> devloader
> > to configure).
> >
> > I f anyone is interested, here is my configuration (using Tomcat 8 and
> > latest Eclipse Luna, but should also work with older versions) :
> > - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
> > build)
> > - Server configuration: serve modules without publishing, auto-reload
> > disabled by default
> > - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> > fails - hot deploy does fail but LCR doesn't)
> >
> > Christian
> >
> >
> > 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
> >
> > > Thanks Kallenow I (hope I) have a clear path
> > >
> > >
> > > Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> > > > On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti <
> lube...@archicoop.it>
> > > > wrote:
> > > >
> > > >> Thanks Kalle, maybe I'm starting to figuring it out.
> > > >> So the devloader enables the container to load classes from paths
> > > >> aoutside WEB-INF/lib and WEB-INF/classes , right?
> > > >>
> > > > That's what I said and that's what the linked resource said.
> > > >
> > > >> So if instead of the maven project layout I use the classic WTP
> > project
> > > >> layout that has a
> > > >> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and
> > if
> > > >> properly configured builds classes from my source folder into
> > > >> WEB-INF/classes I would get LCR working. Is this correct?
> > > >>
> > > > Yes. Deploy as exploded and remember to turn off container
> > > auto-reloading.
> > > >
> > > >> Of course this goes against all the maven stuff that seems to be
> used
> > by
> > > >> the vast majority of T5 devs.
> > > >>
> > > > Not only T5 but vast majority of Java devs.
> > > >
> > > > Kalle
> > > >
> > > >
> > > >> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> > > >>> You don't need the devloader for live class reloading. You need it
> to
> > > be
> > > >>> able to pick up classes from other locations than /lib or /classes,
> > say
> > > >>> from your local Maven repo, as explained at the bottom of
> > > >>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html.
> Now,
> > > you
> > > >>> can technically use the devloader by itself by manually configuring
> > the
> > > >>> devloader's configuration file but I wouldn't recommend it. (and to
> > > >> others,
> > > >>> Ivano specifically stated he wants to use Tomcat, not Jetty).
> > > >>>
> > > >>> Kalle
> > > >>>
> > > >>>
> > > >>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti <
> lube...@archicoop.it
> > >
> > > >> wrote:
> > >  Hi everybody I'm a former user of T4 but for many reasons
> > independent
> > >  from my will, I had to abandon Tapestry a few years ago, while I'm
> > > still
> > >  maintaining some web applications.
> > > 
> > >  Now I want to step into T5 and I'm following the tutorial.
> > >  I have set up under Eclipse and successfully running the tutorial.
> > >  Before going further I would like to be sure LCR works (because
> > > actually
> > >  doesn't).
> > > 
> > >  I have read the Kalle page on setting up tomcat but I would like
> to
> > >  avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
> > >  applications and I'm used to launch Tomcat  via Eclipse Debug
> > >  Configuration.
> > > 
> > >  My question is: can I achieve LCR wihtout Sysdeo? Would it be
> enough
> > > to
> > >  deploy devloader in Tomcat lib ?
> > > 
> > >  TIA
> > > 
> > > 
> > >  --
> > >  ==
> > >  dott. Ivano Mario Luberti
> > >  Archimede Informatica societa' cooperativa a r. l.
> > >  Sede Operativa
> > >  Via Geresch

Re: Select with delimiters

2014-08-25 Thread Lance Java
Im not entirely sure what you mean by a delimeter here? Are you talking
about the  tag inside ?
If so, you can use SelectModel.getOptionGroups()
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/SelectModel.html#getOptionGroups()

Or are you wanting to add your own custom html (images etc) to the option
label?



On 25 August 2014 15:55, squallmat .  wrote:

> Hi,
>
> As said in title, I would like to know if it's possible to add special
> values in a select list of objects, that are not "bind to encoder" like the
> blank one, I need to add a delimitation in the list of my entities to
> select.
>
> Thanks.
>


Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Kalle Korhonen
The last I checked, the WTP plugin was still copying the resource files
around which is my main beef with it. It causes subtle issues during
development since you are not sure whether you are seeing the latest
resource file or not immediately after saving. My experiences are from a
few years back though and like everything else, it's likely to have been
improved since.

Kalle


On Mon, Aug 25, 2014 at 1:29 AM, Christian Dutaret 
wrote:

> Hi all,
>
> I've seen a lot of people claiming that one should use Sysdeo plugin to
> work with Tomcat under eclipse/Maven for T5 development, and that the
> standard WTP plugin should be avoided, because it is supposedly buggy and
> slow.
> I've been using WTP plugin for years with other frameworks (including T4),
> and I have no problem at all using it for T5 web apps, as long as it is
> properly configured. I have live class reloading working, Maven
> dependencies picked up just fine, and no Tomcat restarts (and no devloader
> to configure).
>
> I f anyone is interested, here is my configuration (using Tomcat 8 and
> latest Eclipse Luna, but should also work with older versions) :
> - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
> build)
> - Server configuration: serve modules without publishing, auto-reload
> disabled by default
> - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> fails - hot deploy does fail but LCR doesn't)
>
> Christian
>
>
> 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
>
> > Thanks Kallenow I (hope I) have a clear path
> >
> >
> > Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> > > On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
> > > wrote:
> > >
> > >> Thanks Kalle, maybe I'm starting to figuring it out.
> > >> So the devloader enables the container to load classes from paths
> > >> aoutside WEB-INF/lib and WEB-INF/classes , right?
> > >>
> > > That's what I said and that's what the linked resource said.
> > >
> > >> So if instead of the maven project layout I use the classic WTP
> project
> > >> layout that has a
> > >> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and
> if
> > >> properly configured builds classes from my source folder into
> > >> WEB-INF/classes I would get LCR working. Is this correct?
> > >>
> > > Yes. Deploy as exploded and remember to turn off container
> > auto-reloading.
> > >
> > >> Of course this goes against all the maven stuff that seems to be used
> by
> > >> the vast majority of T5 devs.
> > >>
> > > Not only T5 but vast majority of Java devs.
> > >
> > > Kalle
> > >
> > >
> > >> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> > >>> You don't need the devloader for live class reloading. You need it to
> > be
> > >>> able to pick up classes from other locations than /lib or /classes,
> say
> > >>> from your local Maven repo, as explained at the bottom of
> > >>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now,
> > you
> > >>> can technically use the devloader by itself by manually configuring
> the
> > >>> devloader's configuration file but I wouldn't recommend it. (and to
> > >> others,
> > >>> Ivano specifically stated he wants to use Tomcat, not Jetty).
> > >>>
> > >>> Kalle
> > >>>
> > >>>
> > >>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti  >
> > >> wrote:
> >  Hi everybody I'm a former user of T4 but for many reasons
> independent
> >  from my will, I had to abandon Tapestry a few years ago, while I'm
> > still
> >  maintaining some web applications.
> > 
> >  Now I want to step into T5 and I'm following the tutorial.
> >  I have set up under Eclipse and successfully running the tutorial.
> >  Before going further I would like to be sure LCR works (because
> > actually
> >  doesn't).
> > 
> >  I have read the Kalle page on setting up tomcat but I would like to
> >  avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
> >  applications and I'm used to launch Tomcat  via Eclipse Debug
> >  Configuration.
> > 
> >  My question is: can I achieve LCR wihtout Sysdeo? Would it be enough
> > to
> >  deploy devloader in Tomcat lib ?
> > 
> >  TIA
> > 
> > 
> >  --
> >  ==
> >  dott. Ivano Mario Luberti
> >  Archimede Informatica societa' cooperativa a r. l.
> >  Sede Operativa
> >  Via Gereschi 36 - 56126- Pisa
> >  tel.: +39-050- 580959
> >  tel/fax: +39-050-9711344
> >  web: www.archicoop.it
> >  ==
> > 
> > 
> > 
> -
> >  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >  For additional commands, e-mail: users-h...@tapestry.apache.org
> > 
> > 
> > >> --
> > >> ==
> > >> dott. Ivano Mario Luberti
> > >> Archimede Informatica societa' coo

Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Ivano Luberti
Hi Christian, it seems to work: I used the tutorial T5 project created
following the tutorial on T5 web site. Then i have configured my Tomca
runtime in eclipde checking "serve modules without publishing"  and
unchecking  "Modules auto-reload by default"
then modified on the fly the index.java file and modification have been
taken into account without reloading

Many thanks

BTW to verify this works on old versions of Eclipse+Tomcat+Java combo I
verified your suggestions  with Eclipse Juno+Tomcat6+Java 6



Il 25/08/2014 10:29, Christian Dutaret ha scritto:
> Hi all,
>
> I've seen a lot of people claiming that one should use Sysdeo plugin to
> work with Tomcat under eclipse/Maven for T5 development, and that the
> standard WTP plugin should be avoided, because it is supposedly buggy and
> slow.
> I've been using WTP plugin for years with other frameworks (including T4),
> and I have no problem at all using it for T5 web apps, as long as it is
> properly configured. I have live class reloading working, Maven
> dependencies picked up just fine, and no Tomcat restarts (and no devloader
> to configure).
>
> I f anyone is interested, 

I am

> here is my configuration (using Tomcat 8 and
> latest Eclipse Luna, but should also work with older versions) :
> - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
> build)

ok


> - Server configuration: serve modules without publishing, auto-reload
> disabled by default



> - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> fails - hot deploy does fail but LCR doesn't)
>
> Christian
>
>
> 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
>
>> Thanks Kallenow I (hope I) have a clear path
>>
>>
>> Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
>>> On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
>>> wrote:
>>>
 Thanks Kalle, maybe I'm starting to figuring it out.
 So the devloader enables the container to load classes from paths
 aoutside WEB-INF/lib and WEB-INF/classes , right?

>>> That's what I said and that's what the linked resource said.
>>>
 So if instead of the maven project layout I use the classic WTP project
 layout that has a
 WebContent folder which includes WEB-INF/lib and WEB-INF/classes and if
 properly configured builds classes from my source folder into
 WEB-INF/classes I would get LCR working. Is this correct?

>>> Yes. Deploy as exploded and remember to turn off container
>> auto-reloading.
 Of course this goes against all the maven stuff that seems to be used by
 the vast majority of T5 devs.

>>> Not only T5 but vast majority of Java devs.
>>>
>>> Kalle
>>>
>>>
 Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> You don't need the devloader for live class reloading. You need it to
>> be
> able to pick up classes from other locations than /lib or /classes, say
> from your local Maven repo, as explained at the bottom of
> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now,
>> you
> can technically use the devloader by itself by manually configuring the
> devloader's configuration file but I wouldn't recommend it. (and to
 others,
> Ivano specifically stated he wants to use Tomcat, not Jetty).
>
> Kalle
>
>
> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti 
 wrote:
>> Hi everybody I'm a former user of T4 but for many reasons independent
>> from my will, I had to abandon Tapestry a few years ago, while I'm
>> still
>> maintaining some web applications.
>>
>> Now I want to step into T5 and I'm following the tutorial.
>> I have set up under Eclipse and successfully running the tutorial.
>> Before going further I would like to be sure LCR works (because
>> actually
>> doesn't).
>>
>> I have read the Kalle page on setting up tomcat but I would like to
>> avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>> applications and I'm used to launch Tomcat  via Eclipse Debug
>> Configuration.
>>
>> My question is: can I achieve LCR wihtout Sysdeo? Would it be enough
>> to
>> deploy devloader in Tomcat lib ?
>>
>> TIA
>>
>>
>> --
>> ==
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> web: www.archicoop.it
>> ==
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
 --
 ==
 dott. Ivano Mario Luberti
 Archimede Informatica societa' cooperativa a r. l.
 Sede Operativa
 Via Gere

Select with delimiters

2014-08-25 Thread squallmat .
Hi,

As said in title, I would like to know if it's possible to add special
values in a select list of objects, that are not "bind to encoder" like the
blank one, I need to add a delimitation in the list of my entities to
select.

Thanks.


Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Chris Mylonas
OK, thanks for follow up.  I'll try manually downloading to force it and do
the eclipse test tomorrow.
On 25/08/2014 10:06 pm, "Thiago H de Paula Figueiredo" 
wrote:

> On Sun, 24 Aug 2014 20:38:52 -0300, Chris Mylonas 
> wrote:
>
>  just from the command line.
>> Same environment as before, fresh mvn generate, 5.4b6, 5.2.6 also don't
>> LCR from command line "mvn clean jetty:run"
>> 5.1.0.5 doesn't build anymore, sic  "Error unzipping tapestry-core.jar"
>>
>
> This is a truncated (partially downloaded) JAR problem, so it's not
> relevant to this discussion.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: bad secure links

2014-08-25 Thread John
Hi,

Yes I am using 5.3.7.

I added this code as suggested...

  public void contributeMetaDataLocator(MappedConfiguration 
configuration)
  {
  configuration.add(MetaDataConstants.SECURE_PAGE, "true");
  }


The above seems to break my eventlinks in production mode (ok in dev mode), 
probably a js problem?

Maybe time to look at 5.4, but I am using Tapestry5-jquery and that doesn't 
work with 5.4!

John
  - Original Message -
  From: Thiago H de Paula Figueiredo
  To: Tapestry users
  Sent: Monday, August 25, 2014 12:27 AM
  Subject: Re: bad secure links


  On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:

  > I started running my app in production mode but I get these bad links  
  > (the yui compressor throwing exceptions too)
  >
  >  
href="http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=";>John
  > Doe
  >
  > I've recall seeing this sometime before, I think Tapetsry is trying to 
  > force links to be secure but it gets the protocol wrong, no need for the
  > oort number either!?
  >
  > What is the fix please?

  What's the Tapestry version please? :) I guess it isn't 5.4, as you're
  using tapestry-yuicompressor, which is deprecated in 5.4 due to too much 
  bugs.

  Anyway, you can customize the handling of secure and non-secure links by 
  overriding, decorating or advising the BaseURLSource service. Looking at 
  the default implementation in 5.4, I cannot see it getting the HTTPS port
  wrong.

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

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


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Thiago H de Paula Figueiredo
On Sun, 24 Aug 2014 20:38:52 -0300, Chris Mylonas   
wrote:



just from the command line.
Same environment as before, fresh mvn generate, 5.4b6, 5.2.6 also don't  
LCR from command line "mvn clean jetty:run"

5.1.0.5 doesn't build anymore, sic  "Error unzipping tapestry-core.jar"


This is a truncated (partially downloaded) JAR problem, so it's not  
relevant to this discussion.


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

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



Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Dmitry Gusev
Hi Christian,

It'd be nice if you could summarize the steps how you set up your
development environment in the form of a blog post or a wiki page.

Similar to what Kalle did with Eclipse+Sysdeo:
http://docs.codehaus.org/display/TYNAMO/Developing+with+Tomcat+and+Eclipse

It'd really help the community.



On Mon, Aug 25, 2014 at 12:29 PM, Christian Dutaret 
wrote:

> Hi all,
>
> I've seen a lot of people claiming that one should use Sysdeo plugin to
> work with Tomcat under eclipse/Maven for T5 development, and that the
> standard WTP plugin should be avoided, because it is supposedly buggy and
> slow.
> I've been using WTP plugin for years with other frameworks (including T4),
> and I have no problem at all using it for T5 web apps, as long as it is
> properly configured. I have live class reloading working, Maven
> dependencies picked up just fine, and no Tomcat restarts (and no devloader
> to configure).
>
> I f anyone is interested, here is my configuration (using Tomcat 8 and
> latest Eclipse Luna, but should also work with older versions) :
> - plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
> build)
> - Server configuration: serve modules without publishing, auto-reload
> disabled by default
> - Dismiss any hot deploy alerts (click do not warn again if hot deploy
> fails - hot deploy does fail but LCR doesn't)
>
> Christian
>
>
> 2014-08-25 8:03 GMT+02:00 Ivano Luberti :
>
> > Thanks Kallenow I (hope I) have a clear path
> >
> >
> > Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> > > On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
> > > wrote:
> > >
> > >> Thanks Kalle, maybe I'm starting to figuring it out.
> > >> So the devloader enables the container to load classes from paths
> > >> aoutside WEB-INF/lib and WEB-INF/classes , right?
> > >>
> > > That's what I said and that's what the linked resource said.
> > >
> > >> So if instead of the maven project layout I use the classic WTP
> project
> > >> layout that has a
> > >> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and
> if
> > >> properly configured builds classes from my source folder into
> > >> WEB-INF/classes I would get LCR working. Is this correct?
> > >>
> > > Yes. Deploy as exploded and remember to turn off container
> > auto-reloading.
> > >
> > >> Of course this goes against all the maven stuff that seems to be used
> by
> > >> the vast majority of T5 devs.
> > >>
> > > Not only T5 but vast majority of Java devs.
> > >
> > > Kalle
> > >
> > >
> > >> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> > >>> You don't need the devloader for live class reloading. You need it to
> > be
> > >>> able to pick up classes from other locations than /lib or /classes,
> say
> > >>> from your local Maven repo, as explained at the bottom of
> > >>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now,
> > you
> > >>> can technically use the devloader by itself by manually configuring
> the
> > >>> devloader's configuration file but I wouldn't recommend it. (and to
> > >> others,
> > >>> Ivano specifically stated he wants to use Tomcat, not Jetty).
> > >>>
> > >>> Kalle
> > >>>
> > >>>
> > >>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti  >
> > >> wrote:
> >  Hi everybody I'm a former user of T4 but for many reasons
> independent
> >  from my will, I had to abandon Tapestry a few years ago, while I'm
> > still
> >  maintaining some web applications.
> > 
> >  Now I want to step into T5 and I'm following the tutorial.
> >  I have set up under Eclipse and successfully running the tutorial.
> >  Before going further I would like to be sure LCR works (because
> > actually
> >  doesn't).
> > 
> >  I have read the Kalle page on setting up tomcat but I would like to
> >  avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
> >  applications and I'm used to launch Tomcat  via Eclipse Debug
> >  Configuration.
> > 
> >  My question is: can I achieve LCR wihtout Sysdeo? Would it be enough
> > to
> >  deploy devloader in Tomcat lib ?
> > 
> >  TIA
> > 
> > 
> >  --
> >  ==
> >  dott. Ivano Mario Luberti
> >  Archimede Informatica societa' cooperativa a r. l.
> >  Sede Operativa
> >  Via Gereschi 36 - 56126- Pisa
> >  tel.: +39-050- 580959
> >  tel/fax: +39-050-9711344
> >  web: www.archicoop.it
> >  ==
> > 
> > 
> > 
> -
> >  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >  For additional commands, e-mail: users-h...@tapestry.apache.org
> > 
> > 
> > >> --
> > >> ==
> > >> dott. Ivano Mario Luberti
> > >> Archimede Informatica societa' cooperativa a r. l.
> > >> Sede Operativa
> > >> Via Gereschi 36 - 56126- Pi

Re: LCR in Eclipse without Sysdeo plugin

2014-08-25 Thread Christian Dutaret
Hi all,

I've seen a lot of people claiming that one should use Sysdeo plugin to
work with Tomcat under eclipse/Maven for T5 development, and that the
standard WTP plugin should be avoided, because it is supposedly buggy and
slow.
I've been using WTP plugin for years with other frameworks (including T4),
and I have no problem at all using it for T5 web apps, as long as it is
properly configured. I have live class reloading working, Maven
dependencies picked up just fine, and no Tomcat restarts (and no devloader
to configure).

I f anyone is interested, here is my configuration (using Tomcat 8 and
latest Eclipse Luna, but should also work with older versions) :
- plugins: WTP, m2e, m2e-wtp (but they all come with the Eclipse for JEE
build)
- Server configuration: serve modules without publishing, auto-reload
disabled by default
- Dismiss any hot deploy alerts (click do not warn again if hot deploy
fails - hot deploy does fail but LCR doesn't)

Christian


2014-08-25 8:03 GMT+02:00 Ivano Luberti :

> Thanks Kallenow I (hope I) have a clear path
>
>
> Il 25/08/2014 07:48, Kalle Korhonen ha scritto:
> > On Sun, Aug 24, 2014 at 10:43 PM, Ivano Luberti 
> > wrote:
> >
> >> Thanks Kalle, maybe I'm starting to figuring it out.
> >> So the devloader enables the container to load classes from paths
> >> aoutside WEB-INF/lib and WEB-INF/classes , right?
> >>
> > That's what I said and that's what the linked resource said.
> >
> >> So if instead of the maven project layout I use the classic WTP project
> >> layout that has a
> >> WebContent folder which includes WEB-INF/lib and WEB-INF/classes and if
> >> properly configured builds classes from my source folder into
> >> WEB-INF/classes I would get LCR working. Is this correct?
> >>
> > Yes. Deploy as exploded and remember to turn off container
> auto-reloading.
> >
> >> Of course this goes against all the maven stuff that seems to be used by
> >> the vast majority of T5 devs.
> >>
> > Not only T5 but vast majority of Java devs.
> >
> > Kalle
> >
> >
> >> Il 25/08/2014 07:24, Kalle Korhonen ha scritto:
> >>> You don't need the devloader for live class reloading. You need it to
> be
> >>> able to pick up classes from other locations than /lib or /classes, say
> >>> from your local Maven repo, as explained at the bottom of
> >>> http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html. Now,
> you
> >>> can technically use the devloader by itself by manually configuring the
> >>> devloader's configuration file but I wouldn't recommend it. (and to
> >> others,
> >>> Ivano specifically stated he wants to use Tomcat, not Jetty).
> >>>
> >>> Kalle
> >>>
> >>>
> >>> On Sun, Aug 24, 2014 at 1:27 AM, Ivano Luberti 
> >> wrote:
>  Hi everybody I'm a former user of T4 but for many reasons independent
>  from my will, I had to abandon Tapestry a few years ago, while I'm
> still
>  maintaining some web applications.
> 
>  Now I want to step into T5 and I'm following the tutorial.
>  I have set up under Eclipse and successfully running the tutorial.
>  Before going further I would like to be sure LCR works (because
> actually
>  doesn't).
> 
>  I have read the Kalle page on setting up tomcat but I would like to
>  avoid the use of Sysdeo, because I use Eclipse+Tomcat for other
>  applications and I'm used to launch Tomcat  via Eclipse Debug
>  Configuration.
> 
>  My question is: can I achieve LCR wihtout Sysdeo? Would it be enough
> to
>  deploy devloader in Tomcat lib ?
> 
>  TIA
> 
> 
>  --
>  ==
>  dott. Ivano Mario Luberti
>  Archimede Informatica societa' cooperativa a r. l.
>  Sede Operativa
>  Via Gereschi 36 - 56126- Pisa
>  tel.: +39-050- 580959
>  tel/fax: +39-050-9711344
>  web: www.archicoop.it
>  ==
> 
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>  For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> >> --
> >> ==
> >> dott. Ivano Mario Luberti
> >> Archimede Informatica societa' cooperativa a r. l.
> >> Sede Operativa
> >> Via Gereschi 36 - 56126- Pisa
> >> tel.: +39-050- 580959
> >> tel/fax: +39-050-9711344
> >> web: www.archicoop.it
> >> ==
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
>

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-08-25 Thread Semen Vishniakov
Wow, thank you for your work Lance!

I can't test it this week, but I will try it next week and write here
how it works for me.

Sem

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