Re: Quartz for Tapestry5

2013-08-08 Thread Chris Cureau
Beautiful...and just what I needed too!  Thanks!


On Thu, Aug 8, 2013 at 10:02 AM, Dmitry Gusev dmitry.gu...@gmail.comwrote:

 FYI:


 https://github.com/anjlab/anjlab-tapestry-commons/tree/master/anjlab-tapestry-quartz

 --
 Dmitry Gusev

 AnjLab Team
 http://anjlab.com



Re: implementation of 'tapestry.hmac-passphrase

2013-08-03 Thread Chris Cureau
http://tapestry.apache.org/configuration.html#Configuration-tapestry.hmacpassphrase

Hint: Don't change it once its set.

On Aug 3, 2013 11:00 AM, Nikola Vulovic nivuk...@gmail.com wrote:

 i get this error message in log and in AlertManager
 (ClientDataEncoderImpl.java:61) - The symbol 'tapestry.hmac-passphrase' has
 not been configured. This is used to configure hash-based message
 authentication of Tapestry data stored in forms, or in the URL. You
 application is less secure, and more vulnerable to denial-of-service
 attacks, when this symbol is not configured.

 I wish to implement tapestry.hmac-passphrase
 Hope someone can tell me exactly what to do

 --
 Pozdrav Nikola Vulovic



tapestry-bootstrap repository issue

2013-07-03 Thread Chris Cureau
I got a strange error from Eclipse this morning when trying to add
tapestry-bootstrap to my pom...

ArtifactDescriptorException: Failed to read artifact descriptor for
org.got5:tapestry5-jquery:jar:3.2.1: ArtifactResolutionException: Failure
to transfer org.got5:tapestry5-jquery:pom:3.2.1 from
https://repository.apache.org/content/groups/staging/ was cached in the
local repository, resolution will not be reattempted until the update
interval of apache-staging has elapsed or updates are forced.

Original error: Could not transfer artifact
org.got5:tapestry5-jquery:pom:3.2.1 from/to apache-staging (
https://repository.apache.org/content/groups/staging/): RSA premaster
secret error to
https://repository.apache.org/content/groups/staging/org/got5/tapestry5-jquery/3.2.1/tapestry5-jquery-3.2.1.pom

I can't find the org.got5 repository in apache-staging at all.  Maybe the
Maven information is wrong?


Re: tapestry-bootstrap repository issue

2013-07-03 Thread Chris Cureau
Kalle,

Thanks for letting me know.  I knew that they weren't Apache projects...and
I already know which version of Tapestry I want to use.

Apparently, the issue goes away if I manually add tapestry5-jquery before
attempting to add tapestry-bootstrap.  Maybe the whole issue is that
tapestry5-jquery isn't in the main Maven repo and its doing its best to
pull from there.  Live, learn.  But if tapestry5-jquery is a dependency of
tapestry-bootstrap, shouldn't bootstrap pull it from the proper sources?


On Wed, Jul 3, 2013 at 10:33 AM, Kalle Korhonen
kalle.o.korho...@gmail.comwrote:

 The repo for tapestry5-jquery is
 http://nexus.devlab722.net/nexus/content/repositories/releases, it says so
 right there on the front page of https://github.com/got5/tapestry5-jquery.
 Now, neither tapestry-bootstrap (this one right?
 https://github.com/trsvax/tapestry-bootstrap) nor tapestry5-jquery are
 Apache projects so their artifacts will certainly not be hosted on Apache's
 staging repo. Perhaps you need to first figure out which version of
 Tapestry5 you want to use.

 Kalle


 On Wed, Jul 3, 2013 at 6:38 AM, Chris Cureau cmcur...@gmail.com wrote:

  I got a strange error from Eclipse this morning when trying to add
  tapestry-bootstrap to my pom...
 
  ArtifactDescriptorException: Failed to read artifact descriptor for
  org.got5:tapestry5-jquery:jar:3.2.1: ArtifactResolutionException: Failure
  to transfer org.got5:tapestry5-jquery:pom:3.2.1 from
  https://repository.apache.org/content/groups/staging/ was cached in the
  local repository, resolution will not be reattempted until the update
  interval of apache-staging has elapsed or updates are forced.
 
  Original error: Could not transfer artifact
  org.got5:tapestry5-jquery:pom:3.2.1 from/to apache-staging (
  https://repository.apache.org/content/groups/staging/): RSA premaster
  secret error to
 
 
 https://repository.apache.org/content/groups/staging/org/got5/tapestry5-jquery/3.2.1/tapestry5-jquery-3.2.1.pom
 
  I can't find the org.got5 repository in apache-staging at all.  Maybe the
  Maven information is wrong?
 



Re: Can tapestry run on Android

2013-05-27 Thread Chris Cureau
Tapestry itself runs on a web container, like tomcat. The served pages will
operate in chrome in android and probably firefox as well, though I haven't
tested it there.

You can also use jQuery mobile for added capabilities, but a dedicated
project like tapestry-jQuery doesn't exist yet as far as I know.
On May 27, 2013 10:25 PM, Ryan How r...@zbit.net.au wrote:

 Hi,

 I was just wondering before I look too closely if anyone knows if a
 Tapestry webapp can run on Android?

 I see there is an Android port of Jetty.

 Thanks, Ryan


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




Stopping/Removing a job from PeriodicExecutor

2013-05-22 Thread Chris Cureau
Hi there!

I currently have a project that is using a PeriodicExecutor to kick off
processes on a regular basis.  I need to expand on that so that I can stop
a running job, reschedule the times, and remove the job completely from the
PeriodicExecutor.  Don't see any sort of code out there to do this.

Any suggestions?  Am I going to have to use Quartz?


Re: Tapestry 5.3.6 and Debian/ppc

2013-03-05 Thread Chris Cureau
I wasn't sure how that worked, no...thanks for the pointer!


On Tue, Mar 5, 2013 at 7:32 AM, Michael Gentry mgen...@masslight.netwrote:

 Hi Chris,

 Apologies if you already know this, but you can set up an exclusion in the
 tapestry-security dependency section of your POM:

 exclusions
   exclusion
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-ioc/artifactId
   /exclusion
 /exclusions

 mrg



 On Mon, Mar 4, 2013 at 1:27 PM, Chris Cureau cmcur...@gmail.com wrote:

  Michael,
 
  On the nose!  tapestry-security depended on 5.3.4, but I am building on
  5.3.6.  Funny thing is, I'm using this exact code on my Intel box with
  Oracle JDK and it didn't complain at all...
 
  Thanks Thiago and Michael!
 
 
  On Mon, Mar 4, 2013 at 7:23 AM, Michael Gentry mgen...@masslight.net
  wrote:
 
   Hi Thiago,
  
   I saw the same exception a week or two ago when attempting to upgrade
 our
   project from 5.3.3 to 5.3.6.  Turns out one of the external Tapestry
   libraries we were using specified 5.3.3 and Maven included that JAR for
   either tapestry-core or tapestry-ioc (I forget which one at the moment,
  but
   probably ioc).  Perhaps that is the source of Chris' problem, too.
  
   Chris, try running a mvn dependency:tree and make sure 5.3.6 is
 listed
   for all Tapestry JARs.  If so, look under target to see what was
 actually
   included in the build (both in the .war file and under the WEB-INF/lib
   directory).
  
   mrg
  
  
   On Mon, Mar 4, 2013 at 5:57 AM, Thiago H de Paula Figueiredo 
   thiag...@gmail.com wrote:
  
On Sun, 03 Mar 2013 13:48:01 -0300, Chris Cureau cmcur...@gmail.com
 
wrote:
   
 Caused by: java.lang.**ClassNotFoundException:
org.apache.tapestry5.ioc.**internal.util.LockSupport
   
   
This is the error and it's not related to JVM or operating system or
processor: it seems you have a truncated or otherwise corrupted
Tapestry-IoC JAR. Or you have mixed versions of Tapestry-IoC and
Tapestry-Core.
   
--
Thiago H. de Paula Figueiredo
   
   
  --**--**-
To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org
   users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
   
   
  
 



Re: Tapestry 5.3.6 and Debian/ppc

2013-03-04 Thread Chris Cureau
Michael,

On the nose!  tapestry-security depended on 5.3.4, but I am building on
5.3.6.  Funny thing is, I'm using this exact code on my Intel box with
Oracle JDK and it didn't complain at all...

Thanks Thiago and Michael!


On Mon, Mar 4, 2013 at 7:23 AM, Michael Gentry mgen...@masslight.netwrote:

 Hi Thiago,

 I saw the same exception a week or two ago when attempting to upgrade our
 project from 5.3.3 to 5.3.6.  Turns out one of the external Tapestry
 libraries we were using specified 5.3.3 and Maven included that JAR for
 either tapestry-core or tapestry-ioc (I forget which one at the moment, but
 probably ioc).  Perhaps that is the source of Chris' problem, too.

 Chris, try running a mvn dependency:tree and make sure 5.3.6 is listed
 for all Tapestry JARs.  If so, look under target to see what was actually
 included in the build (both in the .war file and under the WEB-INF/lib
 directory).

 mrg


 On Mon, Mar 4, 2013 at 5:57 AM, Thiago H de Paula Figueiredo 
 thiag...@gmail.com wrote:

  On Sun, 03 Mar 2013 13:48:01 -0300, Chris Cureau cmcur...@gmail.com
  wrote:
 
   Caused by: java.lang.**ClassNotFoundException:
  org.apache.tapestry5.ioc.**internal.util.LockSupport
 
 
  This is the error and it's not related to JVM or operating system or
  processor: it seems you have a truncated or otherwise corrupted
  Tapestry-IoC JAR. Or you have mixed versions of Tapestry-IoC and
  Tapestry-Core.
 
  --
  Thiago H. de Paula Figueiredo
 
  --**--**-
  To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org
 users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



Re: Trying to get tapestry-bootstrap running with 5.3.6

2013-02-08 Thread Chris Cureau
Tapestry-bootstrap needs tapestry 5.3.4.  I just cloned the
tapestry-bootstrap git repository and changed the dependency to 5.3.6.

If there's a better way, please let me know!
On Feb 8, 2013 8:12 PM, George Ludwig georgelud...@gmail.com wrote:

 I've been running in circles trying to make Eclipse and Maven happy with
 the dependencies, but I've had no luck.

 My final play was to download Jumpstart 6.6.5 and run the build, then
 upload tapestry5-jquery-3.3.4.jar and tapestry-bootstrap-2.1.3.jar to my
 artifact repository.

 I then ad those to my pom.xml, but when I run mvn:eclipse, it still
 complains:
 Project 'ui' is missing required library:

 '/Users/George/.m2/repository/com/google/code/maven-play-plugin/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.jar
 '

 I've read a thread about problems relating to yuicompressor, but I have no
 idea what to do about it, or why the jumpstart project is seemingly able to
 get away without it.

 Any help is much appreciated!

 -George



Re: Tapestry 5 book is here

2013-01-25 Thread Chris Cureau
I've been extremely happy with my book so far...Thanks for all your hard
work, Igor! :)


On Fri, Jan 25, 2013 at 3:20 AM, Igor Drobiazko igor.drobia...@gmail.comwrote:

 Dear Tapestry community,

 I'm glad to announce that the long awaited Tapestry 5 book is now available
 for purchase as paperback:

 http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/

 Enjoy reading



Re: date and time picker

2012-11-29 Thread Chris Cureau
I haven't found a ready-made tapestry component, but building up a
component isn't too hard.  Mobiscroll (http://mobiscroll.com) is a good
option, as is jQuery TIme Entry (http://keith-wood.name/timeEntry.html)
depending on your needs.


On Thu, Nov 29, 2012 at 7:03 AM, John j...@quivinco.com wrote:

 Hi,

 Is there any tapestry component that is both a date and time picker?

 TIA
 John


Re: breadcrumb trail component

2012-10-29 Thread Chris Cureau
https://github.com/argoyle/tapestry-breadcrumbs

On Mon, Oct 29, 2012 at 10:10 AM, John j...@quivinco.com wrote:

 Hi,

 Is there a component to display a breadcrumb trail at the top of a page so
 users can navigate site structure they have followed?

 John


Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread Chris Cureau
Hi!

This may or may not be your issue, but f you are using tapestry5-jquery,
you may have some issues with autocomplete unless you use
t:mixins=jquery/autocomplete or disable Prototype first.

Just a thought...

On Wed, Sep 12, 2012 at 9:48 AM, djst da...@ctu.dk wrote:

 Hi there.

 I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I
 cannot get it to function properly. Tapestry does not call my
 onProvideCompletionsFrom eventhandler. When inputting characters into the
 textfield I get a little loading icon on the right side of my text field
 but
 nothing further happens. If I uncomment my eventhandler function exactly
 the
 same happens. I can, though, see that a POST is sent since I'm getting the
 following debug message:

 127.0.0.1 -  -  [12/sep/2012:14:29:19 +] POST
 /RMS/randomise.testfield:autocomplete HTTP/1.1 200 29
 http://localhost:8080/RMS/randomise;

 Here is my code:

 From my Someclass.tml:

 t:textfield t:id=TestField t:value=testValue t:mixins=autocomplete/

 From my Someclass.java:

 public class SomeClass{

 @Property
 String testValue;

 ListString onProvideCompletionsFromTestField(String partial)
 {
 ListString matches = new ArrayListString();
 String testString = help;
 if(testString.contains(partial))
 matches.add(testString);

 return matches;
 }
 }

 I then try to type h in the textfield and I suppose I it should
 autocomplete to help, as I said, the loading icon just keeps spinning and
 nothing happens. I've tried different suggestions from other posts where
 people are having the same problem, but non of them turned out to be fixes.

 Do you have any idea how I can fix this issue?

 Thanks in advance.

 /David




 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-2-autocomplete-mixin-not-working-tp5716234.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: hide primary key on call to edit form

2012-09-06 Thread Chris Cureau
You guessed right...I removed the onPassivate() method and all is well.
Thanks!

On Thu, Sep 6, 2012 at 10:36 AM, Lance Java lance.j...@googlemail.comwrote:

 Firstly, I would avoid session usage unless it is definitely required.
 Passing the primary key in the URL is a good way of avoiding session usage.

 Secondly, tapestry is most likely adding the primary key to the URL
 because:
 a) The EditEvent page has an onPassivate() method.
 b) The EditEvent page has a property with a @PageActivationContext
 annotation



 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/hide-primary-key-on-call-to-edit-form-tp5716100p5716101.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: javascript component questions

2012-08-21 Thread Chris Cureau
Emmanuel,

This will work very well for the events, provided as you said they come
from the same location throughout the application.  For my current project
they will be.  Thanks!

I'd still like to figure out an easy (read: lazy programmer ;) ) way to get
the dynamic settings included in the afterRender function.  I'd love to be
able to do something like

FullCalendar fc = new FullCalendar;
fc.setHeader(...);
fc.setEventLocation(...);

and so on.  I still need to figure out how to get a JSONObject from a page
class sent to the component class...wasn't able to work on it last night.

Cheers,
Chris

On Tue, Aug 21, 2012 at 2:13 AM, Emmanuel DEMEY demey.emman...@gmail.comwrote:

 Hi Chris,

 At the same time, a not well-known feature of Tapestry5-jQuery. If you want
 to specify a default JSONObject for your fullcalendar (that will be used
 for each fullcalendar), you should contribute to the WidgetParams service
 in your AppModule :
 Please have a look to the AppModule of the demo website :

 https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/java/org/got5/tapestry5/jquery/services/AppModule.java


 This default JSON will be merged with the one that you will define as a
 parameter of your component.

 Emmanuel

 2012/8/20 Chris Cureau cmcur...@gmail.com

  Thanks, François...that might solve the issue.  I want to contribute this
  back to tapestry5-jquery, and the easier I can make it to use the better
  IMHO.
 
  This component is created from fullcalendar (
  http://arshaw.com/fullcalendar/).
  It's a javascript utility that displays a calendar in the browser and
  allows the programmer to write code to interact with it.  As it comes, it
  only gives enough functionality to display events (json, xml, or google
  calendar with additional javascript) but it gives the hooks necessary to
  allow for a good amount of customization.  Exactly the component I need
 for
  a scheduling utility.
 
  I think I mistakenly typed freecalendar instead of fullcalendar
  earlier...my apologies. :)
 
  On Mon, Aug 20, 2012 at 9:17 AM, François Facon francois.fa...@atos.net
  wrote:
 
   Hi Chris,
  
   In order to avoid having so much makup in your tml you can generate a
   JSon array in java class and pass it as property  to your calendar
   component parameter.
  
   By way could you give us more details about the jQuery plugin you are
   using?
  
  
   Regards
   François
  
   2012/8/20 Chris Cureau cmcur...@gmail.com:
I could do this, yes...I guess I was just trying to avoid having
 quite
  so
much markup in the tml file...
   
On Mon, Aug 20, 2012 at 8:34 AM, trsvax trs...@gmail.com wrote:
   
Most jQuery components can be implemented by simply extending the
  Widget
mixin
   
for example
   
@Import (library={your js file})
public Class FreeCalendar extends Widget {
}
   
Then in your tml file
   
t:any mixins=FreeCalendar options=JSON String of options/
   
   
   
   
--
View this message in context:
   
  
 
 http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582p5715594.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
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
   For additional commands, e-mail: users-h...@tapestry.apache.org
  
  
 



 --
 Emmanuel DEMEY
 Ingénieur Etude et Développement
 ATOS Worldline
 +33 (0)6 47 47 42 02
 demey.emman...@gmail.com
 http://emmanueldemey.fr/

 Twitter : @EmmanuelDemey



Re: javascript component questions

2012-08-21 Thread Chris Cureau
I just read Emmanuel's reply a second time...sharing the JSONObject between
all Component instances as he has described will do pretty much just what I
was looking for without having to pass the JSONObject.  Not enough coffee
yet. :)  Sorry for the chatter...

On Tue, Aug 21, 2012 at 2:13 AM, Emmanuel DEMEY demey.emman...@gmail.comwrote:

 Hi Chris,

 At the same time, a not well-known feature of Tapestry5-jQuery. If you want
 to specify a default JSONObject for your fullcalendar (that will be used
 for each fullcalendar), you should contribute to the WidgetParams service
 in your AppModule :
 Please have a look to the AppModule of the demo website :

 https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/java/org/got5/tapestry5/jquery/services/AppModule.java


 This default JSON will be merged with the one that you will define as a
 parameter of your component.

 Emmanuel

 2012/8/20 Chris Cureau cmcur...@gmail.com

  Thanks, François...that might solve the issue.  I want to contribute this
  back to tapestry5-jquery, and the easier I can make it to use the better
  IMHO.
 
  This component is created from fullcalendar (
  http://arshaw.com/fullcalendar/).
  It's a javascript utility that displays a calendar in the browser and
  allows the programmer to write code to interact with it.  As it comes, it
  only gives enough functionality to display events (json, xml, or google
  calendar with additional javascript) but it gives the hooks necessary to
  allow for a good amount of customization.  Exactly the component I need
 for
  a scheduling utility.
 
  I think I mistakenly typed freecalendar instead of fullcalendar
  earlier...my apologies. :)
 
  On Mon, Aug 20, 2012 at 9:17 AM, François Facon francois.fa...@atos.net
  wrote:
 
   Hi Chris,
  
   In order to avoid having so much makup in your tml you can generate a
   JSon array in java class and pass it as property  to your calendar
   component parameter.
  
   By way could you give us more details about the jQuery plugin you are
   using?
  
  
   Regards
   François
  
   2012/8/20 Chris Cureau cmcur...@gmail.com:
I could do this, yes...I guess I was just trying to avoid having
 quite
  so
much markup in the tml file...
   
On Mon, Aug 20, 2012 at 8:34 AM, trsvax trs...@gmail.com wrote:
   
Most jQuery components can be implemented by simply extending the
  Widget
mixin
   
for example
   
@Import (library={your js file})
public Class FreeCalendar extends Widget {
}
   
Then in your tml file
   
t:any mixins=FreeCalendar options=JSON String of options/
   
   
   
   
--
View this message in context:
   
  
 
 http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582p5715594.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
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
   For additional commands, e-mail: users-h...@tapestry.apache.org
  
  
 



 --
 Emmanuel DEMEY
 Ingénieur Etude et Développement
 ATOS Worldline
 +33 (0)6 47 47 42 02
 demey.emman...@gmail.com
 http://emmanueldemey.fr/

 Twitter : @EmmanuelDemey



Re: Proposal for DateField validation patch

2012-08-21 Thread Chris Cureau
While we're working on the DateField component, would it be time to
consider adding one of the MIT licensed TimeField components as well?
 Perhaps as an option on top of DateField?

On Tue, Aug 21, 2012 at 7:05 PM, trsvax trs...@gmail.com wrote:

 After discovering DateField does not really validate dates and finding it
 very difficult to make it validate I came up with the following code that I
 think makes things much easier.

 There are really 2 problems.

 First if you pass DateField a string for the format you get a DateFormat
 with lenient set to true. This allows dates such as 00/01/2000 and
 45/01/2000 because DateFormat will do it's best to turn any string into a
 Date object. This means typos may be converted to a valid date and the
 application cannot tell that happened.

 The second problem is parse(string) just parses until it finds a valid date
 and ignores trailing characters. Again this means typos slip thru for
 example 01/01/200- will be the year 200 and not an error.

 So I patched DateField with the following:

 @Parameter(defaultPrefix = BindingConstants.PROP,
 value=symbol:tapestry.DateFormat-lenient)
   private boolean lenient;


 Date parseDate(String text) throws ParseException {
   Date date = null;
   if ( lenient ) {
   date = format.parse(text);
   } else {
   format.setLenient(false);
   ParsePosition parsePosition = new ParsePosition(0);
   date = format.parse(text,parsePosition);
   if (  parsePosition.getIndex() != text.length() ) {
   throw new
 ParseException(messages.format(core-date-value-not-parseable),
   parsePosition.getErrorIndex());
   }
   }
   return date;
   }

 I'd like to submit this as a patch but I have the following question:

 What should the default for lenient be? Personally I think the default
 should be false but that's not strictly  backward compatible. So if you
 wanted the old behavior you would need to override
 tapestry.DateFormat-lenient. My thought is most people do not want the old
 behavior and are unaware DateField allows invalid dates



 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Proposal-for-DateField-validation-patch-tp5715702.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: javascript component questions

2012-08-20 Thread Chris Cureau
Sorry...probably do need to be more specific.  It was late last night and I
was already frustrated with it...

Lots of parameters == items that need to be specific to the page being
rendered at the time rather than common to all components of type
freecalendar.  For example, each page will probably need a different event
source.  A person may want to arrange the header on the calendar
differently on different pages.  Different colors could be requested for
different types of events.  There's a myriad of options available.

Trouble is, a lot of this needs to be set up during the afterRender portion
of the component.  That basically removes the hard coding option.  I have
been passing them in afterRender, and I'll need to keep doing that I'm
sure.  My problem is that for each bit that is specific to the instance of
fullcalendar for that page (lets say event source for the sake of the
argument), I need to pass that information from the page to the component
so it can be included in the afterRender function.

So that's really my question in a nutshell...how do I get my parameters
passed to the component when I am not instantiating the component?

On Mon, Aug 20, 2012 at 8:17 AM, Ray Nicholus rnicho...@widen.com wrote:

 What is the problem with passing a lot of parameters into your javascript
 in afterRender()?  Maybe I'm just not sure what your specific question is.
  You have several ways to pick up such values in your javascript, such as:


1. Pass them in afterRender using JavascriptSupport.
2. Hardcode them in your js
3. Make use of data attributes on associated elements, and reference
these values using jQuery's data function



 On Sun, Aug 19, 2012 at 9:59 PM, ccureau cmcur...@gmail.com wrote:

  I have created a new component based on freecalendar and inserted it into
  the
  tapestry5-jquery tree.  For those who work with that project, it is
  implemented in much the same way as the google calendar component.  I'm
  happy with my progress, but I need to pass a lot of parameters to the
  javascript code with the AfterRender parameter.
 
  I'm thinking that I need to either make the component into an abstract
  class
  or do some other magic to pass variables such as calendar event location
  URL, headers, and whatever else needed for the initial rendering.  I'm
 just
  not sure at this point how to do that.
 
  If anyone has some suggestions, I'd be quite happy to hear them.
 
  Thanks!
 
 
 
  --
  View this message in context:
 
 http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582.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: javascript component questions

2012-08-20 Thread Chris Cureau
I could do this, yes...I guess I was just trying to avoid having quite so
much markup in the tml file...

On Mon, Aug 20, 2012 at 8:34 AM, trsvax trs...@gmail.com wrote:

 Most jQuery components can be implemented by simply extending the Widget
 mixin

 for example

 @Import (library={your js file})
 public Class FreeCalendar extends Widget {
 }

 Then in your tml file

 t:any mixins=FreeCalendar options=JSON String of options/




 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582p5715594.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: javascript component questions

2012-08-20 Thread Chris Cureau
Thanks, François...that might solve the issue.  I want to contribute this
back to tapestry5-jquery, and the easier I can make it to use the better
IMHO.

This component is created from fullcalendar (http://arshaw.com/fullcalendar/).
It's a javascript utility that displays a calendar in the browser and
allows the programmer to write code to interact with it.  As it comes, it
only gives enough functionality to display events (json, xml, or google
calendar with additional javascript) but it gives the hooks necessary to
allow for a good amount of customization.  Exactly the component I need for
a scheduling utility.

I think I mistakenly typed freecalendar instead of fullcalendar
earlier...my apologies. :)

On Mon, Aug 20, 2012 at 9:17 AM, François Facon francois.fa...@atos.netwrote:

 Hi Chris,

 In order to avoid having so much makup in your tml you can generate a
 JSon array in java class and pass it as property  to your calendar
 component parameter.

 By way could you give us more details about the jQuery plugin you are
 using?


 Regards
 François

 2012/8/20 Chris Cureau cmcur...@gmail.com:
  I could do this, yes...I guess I was just trying to avoid having quite so
  much markup in the tml file...
 
  On Mon, Aug 20, 2012 at 8:34 AM, trsvax trs...@gmail.com wrote:
 
  Most jQuery components can be implemented by simply extending the Widget
  mixin
 
  for example
 
  @Import (library={your js file})
  public Class FreeCalendar extends Widget {
  }
 
  Then in your tml file
 
  t:any mixins=FreeCalendar options=JSON String of options/
 
 
 
 
  --
  View this message in context:
 
 http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582p5715594.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
 
 

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




Tapestry5 book

2012-08-14 Thread Chris Cureau
Igor,

Thanks for the book link this morning!  I'm going to spend a good few hours
a day absorbing...

May I suggest some instruction on how to make components out of javascript
packages?  A good example of how to create a wrapper for something like
gmap3 would be quite beneficial...  I ask because I'm trying to integrate
fullcalendar right now...it would really come in handy.

Thanks, and keep up the good work!
Chris


Re: Tapestry5 book

2012-08-14 Thread Chris Cureau
Quite interested!  Thanks!  In the meantime I'll clone the repository and
have a look...

On Tue, Aug 14, 2012 at 10:08 AM, Emmanuel DEMEY
demey.emman...@gmail.comwrote:

 Hi

 If you need informations about how to write Javascript components, you
 should have a look to the tapestry5 jQuery project. We use the same
 structure for each components/mixins. And there is a gmap component !
 At work,  we are working on an integration of the full calendar. Are you
 interested? I will ask the developer as soon as i am back from my holydays.

 Manu

 Le mardi 14 août 2012, Chris Cureau a écrit :

  Igor,
 
  Thanks for the book link this morning!  I'm going to spend a good few
 hours
  a day absorbing...
 
  May I suggest some instruction on how to make components out of
 javascript
  packages?  A good example of how to create a wrapper for something like
  gmap3 would be quite beneficial...  I ask because I'm trying to integrate
  fullcalendar right now...it would really come in handy.
 
  Thanks, and keep up the good work!
  Chris
 


 --
 Emmanuel DEMEY
 Ingénieur Etude et Développement
 ATOS Worldline
 +33 (0)6 47 47 42 02
 demey.emman...@gmail.com
 http://emmanueldemey.fr/

 Twitter : @EmmanuelDemey



Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Chris Cureau
If someone would want to withdraw their contribution, I'd be happy to pay
them instead...a buy out, if you will. :)  Otherwise, I'll
contribute...I've been waiting for this book for a long time!

On Wed, Aug 1, 2012 at 12:38 PM, Stephan Windmüller 
stephan.windmuel...@tu-dortmund.de wrote:

 On 30.07.2012 20:24, Igor Drobiazko wrote:

  I'm not sure. Is there a way to withdraw a contribution?

 I just checked, my credit card has been charged already. So I think that
 there is no way to withdraw my contribution unless the funding does not
 succeed.

 Regards
  Stephan




Re: Autocomplete mixin in a beaneditor

2012-06-12 Thread Chris Cureau
The only way I got it to work was to leave the field out of the beaneditor
and present it as a normal textfield. If you're using the default template,
use a div type of beaneditor-row and it all looks uniform.
On Apr 22, 2012 2:21 AM, Chris Cureau cmcur...@gmail.com wrote:

 I've been trying to add my own parameters to a beanedit to get the
 autocomplete mixin to work, but I'm having little luck.  Is this possible?
  I added a println to the java code for the provideCompletions, but it
 doesn't seem that the method is ever getting called...

 AddressAdd.tml:
 t:form t:id=form clientValidation=false
 div t:type=beanEditor object=zipCode
  p:name
 t:label for=zcode /
 t:textfield t:id=zcode t:mixins=Autocomplete
  t:value=zipCode.code translate=zipcode /
 /p:name
  /div
 /t:form

 AddressAdd.java
 @OnEvent(value = provideCompletions)
  ListString zcode(String partial) {
 ListString result = new ArrayListString();
  ListZipCode matches = zipCodeDAO.findByPartialZipCode(partial);
  for (ZipCode z : matches) {
 result.add(z.getCode());
 }
  System.out.println(\n\nin completions\n\n);
 return result;
 }






Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks very much! I'll test it out this morning...and if I can get it
working decently, I'll make up a post for others to use.

Speaking of, is there a cook book of sorts for tapestry5-jQuery as there is
for tapestry? Maybe I can give back that way. :)
On May 29, 2012 6:34 PM, arterzatij arterza...@gmail.com wrote:

 BTW, when you do a click the tab component update the form needed by zone
 component, but it is donde by tabs component...

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713512.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: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Okay, giving it a try, but running into another issue...

I've got two tabs that contain forms and three tabs that contain grid
data.  As it stands now, the forms redraw themselves (albeit without data)
and the grids return nothing.  My guess is that I'm missing a zone refresh
somewhere.  I watched the POST with Firebug, and I can see a POST
tabnumber being sent as well as the zoneid for the tabs...

Tried catching Action from the tabs, but no help.  Not sure how to capture
the zone request.

On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com wrote:

 Hi, I did that oin this way...

 t:jquery.tabs
t:tabs=personalDataTab, addressTab, bankAccountTab,
 locatorsTab
t:activePanelId=activePanel

p:personalDataTab

t:rimsa.info message=${message:creation-info} /

t:form t:id=userForm
t:beaneditor t:id=userEditor
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form

/p:personalDataTab

p:addressTab
t:form t:id=addressForm
t:beaneditor t:id=addressEditor
p:street
label for=street
t:outputraw
 value=message:street-label /
/label
t:textfield t:id=street
 value=user.address.street /
/p:street
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:addressTab

p:bankAccountTab
t:form t:id=bankAccountForm
t:beaneditor t:id=bankAccountEditor
p:bank
label for=bank
t:outputraw
 value=message:bank-label /
/label
t:bank.bankModel
 value=user.bankAccount.bank /
/p:bank
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:bankAccountTab

p:locatorsTab

t:grid source=user.locators /
t:form t:id=locatorsForm
t:beaneditor t:id=locatorEditor
p:locator
label for=locator
t:outputraw
 value=message:locator-label /
/label
t:user.locatortypeModel
 value=locator.locatorType /
t:textfield t:id=locator
 value=locator.locator /
/p:locator
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:locatorsTab

/t:jquery.tabs

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713511.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: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks, that did the trick for the forms!  The grids still aren't showing
up...I'll do some more work.

On Wed, May 30, 2012 at 2:47 PM, François Facon francois.fa...@atos.netwrote:

 did you try to add a t:ajax=false in your tabs.
 As mention at http://tapestry5-jquery.com/components/docsjquerytabs
 this will disable the zone refresh

 this parameter is used by most of the samples demo like for instance
 http://tapestry5-jquery.com/core/docsdatefield
 and the related tml

 https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/resources/org/got5/tapestry5/jquery/pages/core/DocsDatefield.tml


 2012/5/30 Chris Cureau cmcur...@gmail.com:
  Okay, giving it a try, but running into another issue...
 
  I've got two tabs that contain forms and three tabs that contain grid
  data.  As it stands now, the forms redraw themselves (albeit without
 data)
  and the grids return nothing.  My guess is that I'm missing a zone
 refresh
  somewhere.  I watched the POST with Firebug, and I can see a POST
  tabnumber being sent as well as the zoneid for the tabs...
 
  Tried catching Action from the tabs, but no help.  Not sure how to
 capture
  the zone request.
 
  On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com
 wrote:
 
  Hi, I did that oin this way...
 
  t:jquery.tabs
 t:tabs=personalDataTab, addressTab, bankAccountTab,
  locatorsTab
 t:activePanelId=activePanel
 
 p:personalDataTab
 
 t:rimsa.infomessage=${message:creation-info} /
 
 t:form t:id=userForm
 t:beaneditor t:id=userEditor
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 
 /p:personalDataTab
 
 p:addressTab
 t:form t:id=addressForm
 t:beaneditor t:id=addressEditor
 p:street
 label for=street
 t:outputraw
  value=message:street-label /
 /label
 t:textfield
 t:id=street
  value=user.address.street /
 /p:street
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 /p:addressTab
 
 p:bankAccountTab
 t:form t:id=bankAccountForm
 t:beaneditor t:id=bankAccountEditor
 p:bank
 label for=bank
 t:outputraw
  value=message:bank-label /
 /label
 t:bank.bankModel
  value=user.bankAccount.bank /
 /p:bank
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 /p:bankAccountTab
 
 p:locatorsTab
 
 t:grid source=user.locators /
 t:form t:id=locatorsForm
 t:beaneditor t:id=locatorEditor
 p:locator
 label for=locator
 t:outputraw
  value=message:locator-label /
 /label
 t:user.locatortypeModel
  value=locator.locatorType /
 t:textfield
 t:id=locator
  value=locator.locator /
 /p:locator
 p:button
 div
  class=t-beaneditor-row

Re: Building object through wizard.

2012-05-25 Thread Chris Cureau
Hi George!

What I am doing for this is following the Jumpstart example...I store all
of my entities in the Conversation, and on the last page of the Wizard I
write them to the database.  It's worked out very well so far.  Check out
http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingpages1
for
the example I am using.

There's also a page there for different techniques for passing data between
pages...check
http://jumpstart.doublenegative.com.au/jumpstart/examples/state/passingdatabetweenpages


Another big thanks to Geoff for providing this valuable resource!

On Fri, May 25, 2012 at 9:02 AM, George Christman
gchrist...@cardaddy.comwrote:

 Hello, I'm building a small little wizard that consist of a few pages. The
 wizard allows for updates as well. I'm a hibernate user with a fairly
 complex data structure consisting of many joined entities. I do not want to
 save/update the data until the last page of the wizard which has caused me
 to lose my data from one page to the next. I thought there was a way to
 persist it with hibernate and retrieve it on the next page, but I've failed
 miserably with that. Maybe I'm missing something. So my question is there
 a alternative solution such as SessionState or Persist where I could store
 the object in memory and then later save?

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Building-object-through-wizard-tp5713417.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: Is there a way to have Tapestry generate well-formatted html?

2012-05-21 Thread Chris Cureau
For what its worth, Firebug and Chrome's debugging tools format the output
for you.  You can always use this and not mess with the whitespace
compression at all...

On Mon, May 21, 2012 at 10:58 AM, Rural Hunter ruralhun...@gmail.comwrote:

 It's very hard to view what actually Tapestry generated at client side
 since the html source generated by Tapestry is almost in only one line.

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




tapestry-security and CAS integration?

2012-05-18 Thread Chris Cureau
Since Apache Shiro 1.2.0, there is a plugin that allows Schiro to
communicate directly with CAS SSO server.  Has this functionality made it
into tapestry-security yet?  It'd be handy to have. :)

Cheers,
Chris


tapestry-jquery: changing superfish menu colors

2012-05-13 Thread Chris Cureau
I'm sure that I'm overlooking something, but I can't seem to find the css
in my project that controls how jquery components are drawn.  I want to
change the color of the superfish menu from the default blue to something
that matches the rest of the pages a little more closely.  How can I do
this?  Is the css contained within tapestry-jquery.jar?

Thanks in advance!


Re: tapestry-jquery: changing superfish menu colors

2012-05-13 Thread Chris Cureau
Thanks, Clement!

I hadn't yet needed to delve into CSS, and I wasn't sure about
overriding...guess I should have tried it first. :)   leaving the design
elements to someone else has its disadvantages
On May 13, 2012 2:51 PM, Clément OUDOT clem.ou...@gmail.com wrote:

 2012/5/13 Chris Cureau cmcur...@gmail.com:
  I'm sure that I'm overlooking something, but I can't seem to find the css
  in my project that controls how jquery components are drawn.  I want to
  change the color of the superfish menu from the default blue to something
  that matches the rest of the pages a little more closely.  How can I do
  this?  Is the css contained within tapestry-jquery.jar?

 I think the easiest way is to override the .js-menu class in your CSS.
 For example:

 .sf-menu li {
background: none repeat scroll 0 0 #ccc;
 }



 Clément OUDT
 LinID project - http://www.linid.org

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




Re: Zone refresh in form fragment 'wizard'

2012-05-09 Thread Chris Cureau
No takers? Ah well...I'll break it into separate pages. I just wish I knew
what I was doing wrong. Maybe a renderobject in the template would help?

Igor, can't wait for your book!
On May 8, 2012 10:25 AM, Chris Cureau cmcur...@gmail.com wrote:

 I've looked at the form fragments in firebug. It doesn't appear that the
 form fragment is being changed at all except the visible attribute. I've
 pasted the output from firebug below:

 Before fragment 3:

 div id=formfragment_1 class=t-invisible tapestry-formfragment
 input id=formfragment_1-hidden type=hidden name=t:formdata
 value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+
 h2That's all we need!/h2
 p/p
 Please verify the following information:
 p/p
 div id=summaryZone class=t-zone tapestry-zone/div
 p/p
 To complete this employee, press the
 emFinish/em
 button.
 p/p

 On fragment 3:
 div id=formfragment_1 class=tapestry-formfragment
 input id=formfragment_1-hidden type=hidden name=t:formdata
 value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+
 h2That's all we need!/h2
 p/p
 Please verify the following information:
 p/p
 div id=summaryZone class=t-zone tapestry-zone/div
 p/p
 To complete this employee, press the
 emFinish/em
 button.
 p/p


 On May 8, 2012 10:15 AM, Thiago H. de Paula Figueiredo 
 thiag...@gmail.com wrote:

 On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau cmcur...@gmail.com
 wrote:

  I've just added a few more debugging statements... isInSubmit() is
 getting called before each fragment rendering phase.  It returns false on
 the first two fragments and true on the last.

 What I see is this: The first and second fragments work as expected...the
 first just presenting text, and the second accepting input with
 beaneditor.  The third fragment (submit) shows everything EXCEPT for the
 zone that is set in it.  I am returning the block in onSuccess() when I
 change the fragment from General to Submit (fragment 2 to 3).  No
 exceptions are shown.  It is almost as if Tapestry is ignoring the block
 altogether.


 Have you checked what Tapestry is returning in Firebug or some similar
 tool? Are you sure you're returning a non-null block?

 --
 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.orgusers-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
I've just added a few more debugging statements... isInSubmit() is getting
called before each fragment rendering phase.  It returns false on the first
two fragments and true on the last.

What I see is this: The first and second fragments work as expected...the
first just presenting text, and the second accepting input with
beaneditor.  The third fragment (submit) shows everything EXCEPT for the
zone that is set in it.  I am returning the block in onSuccess() when I
change the fragment from General to Submit (fragment 2 to 3).  No
exceptions are shown.  It is almost as if Tapestry is ignoring the block
altogether.

On Tue, May 8, 2012 at 8:57 AM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Tue, 08 May 2012 10:48:38 -0300, Chris Cureau cmcur...@gmail.com
 wrote:

  Hi Thiago!


 Hi!


  Thanks for the quick response.  I put together a smaller version of my
 page to save some space.  It exhibits the same problems.  No exceptions are
 thrown in the console, but I can see my page going through onSuccess
 properly because of a printf I put in there.


 What exactly is happening? Are you sure the isInSubmit() returns true when
 you're rendering the FormFragment?


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



Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
I've looked at the form fragments in firebug. It doesn't appear that the
form fragment is being changed at all except the visible attribute. I've
pasted the output from firebug below:

Before fragment 3:

div id=formfragment_1 class=t-invisible tapestry-formfragment
input id=formfragment_1-hidden type=hidden name=t:formdata
value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+
h2That's all we need!/h2
p/p
Please verify the following information:
p/p
div id=summaryZone class=t-zone tapestry-zone/div
p/p
To complete this employee, press the
emFinish/em
button.
p/p

On fragment 3:
div id=formfragment_1 class=tapestry-formfragment
input id=formfragment_1-hidden type=hidden name=t:formdata
value=H4sIAFvzloG1XI5BJjElNzNPPzW3ICe/MjVVPyS1uMSquDQpN7Mk3rC4iMEhvyhdL7EgMTkjVa8ksQAoW1RpqpecX5Sak5kEpHML8vNS80qK9YLBelQCivKTU4uLwbzi4sz8vJnBnyS3bmlxZmJg8mHgSM7JBKr2TClhEPLJSixL1M9JzEvXDy4pysxLt/Zh4E7NSc0FKvBLzE0tZKhjYKwoKGHggDrHCIkJAH81VIC+
h2That's all we need!/h2
p/p
Please verify the following information:
p/p
div id=summaryZone class=t-zone tapestry-zone/div
p/p
To complete this employee, press the
emFinish/em
button.
p/p


On May 8, 2012 10:15 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com
wrote:

 On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau cmcur...@gmail.com
 wrote:

  I've just added a few more debugging statements... isInSubmit() is
 getting called before each fragment rendering phase.  It returns false on
 the first two fragments and true on the last.

 What I see is this: The first and second fragments work as expected...the
 first just presenting text, and the second accepting input with
 beaneditor.  The third fragment (submit) shows everything EXCEPT for the
 zone that is set in it.  I am returning the block in onSuccess() when I
 change the fragment from General to Submit (fragment 2 to 3).  No
 exceptions are shown.  It is almost as if Tapestry is ignoring the block
 altogether.


 Have you checked what Tapestry is returning in Firebug or some similar
 tool? Are you sure you're returning a non-null block?

 --
 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.orgusers-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Zone refresh in form fragment 'wizard'

2012-05-07 Thread Chris Cureau
Hi there!

I'm following Geoff's excellent jumpstart on creating a wizard using form
fragments.  I've got it all working so far, but I want to create a summary
form fragment that displays a table with the text that was entered on the
previous form fragment panel.  The final page has a zone defined and
delegated to a block which appears at the bottom of the tml file.  Just
before I move on to the last panel, the onSuccess() routine sets some page
parameters that are defined in the tml file.  It then returns the block to
the page.  Problem is, the block never gets rendered.  I've looked through
the zone examples I've found posted, but none of them seems to do what I am
asking it to do.

Do I have to have a non-visible submit on the page to trigger the zone
update?  Or is there some magic that I'm missing?

Thanks in advance!