T5 NPE on service realization

2009-10-16 Thread zack1403

Hi all,

I was just curious if anyone has had weird NullPointerExceptions on service
realization.  I am getting this NPE when using this service for the first
time after startup:

if (hu == null)
throw new RuntimeException(bad); //debug and system.out show this as a
proxied service
if (con == null)
throw new RuntimeException(bad);
if (statement == null)
throw new RuntimeException(bad);
if (params == null)
throw new RuntimeException(bad);

return hu.getInsertKey(con, statement, params); //NPE thrown on this line

I really am at a loss because I can see the object as not null plain as day
and it makes it past the null checks.  Anyone have an idea what might be
causing it?
-- 
View this message in context: 
http://www.nabble.com/T5-NPE-on-service-realization-tp25929920p25929920.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



Best way to get service from different thread

2009-10-01 Thread zack1403

Hi Everyone,

I have been looking through the docs and mailing list but cant find and
answer to this.  What is the best way to get an autobuilt service from a
separate thread?  I have a quartz job that needs one of my services but im
not sure what i do to get it.

Thanks,
Zack
-- 
View this message in context: 
http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25701647.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: Best way to get service from different thread

2009-10-01 Thread zack1403

Sorry yea I shouldnt have used quartz as an example.  I use job data map to
pass hibernate stuff through in that case but what about a standalone new
thread?  I have a service that spawns new tasks in new threads.  Is there a
way i can inject something like service resources?

Zack


Kalle Korhonen-2 wrote:
 
 You put the service in JobDataMap and in Job you get the map from
 JobExecutionContext.
 
 Kalle
 
 
 On Thu, Oct 1, 2009 at 9:44 AM, zack1403 zack.mann...@gmail.com wrote:

 Hi Everyone,

 I have been looking through the docs and mailing list but cant find and
 answer to this.  What is the best way to get an autobuilt service from a
 separate thread?  I have a quartz job that needs one of my services but
 im
 not sure what i do to get it.

 Thanks,
 Zack
 --
 View this message in context:
 http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25701647.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25702945.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: Best way to get service from different thread

2009-10-01 Thread zack1403

Because the thread might use any number of different services and it would be
nice to be able to just grab them at will from another thread rather than
modifying a constructor each time.  I guess I'll just have pass all the
objects.  Thanks for the help!

Zack


Kalle Korhonen-2 wrote:
 
 On Thu, Oct 1, 2009 at 10:09 AM, zack1403 zack.mann...@gmail.com wrote:
 Sorry yea I shouldnt have used quartz as an example.  I use job data map
 to
 pass hibernate stuff through in that case but what about a standalone new
 thread?  I have a service that spawns new tasks in new threads.  Is there
 a
 way i can inject something like service resources?
 
 No, not as far as I know - I suppose you could try get access to the
 same service registry instance but it's well-hidden for a reason. Why
 don't you just pass the required services to the thread at its
 construction?
 
 Kalle
 
 Kalle Korhonen-2 wrote:

 You put the service in JobDataMap and in Job you get the map from
 JobExecutionContext.

 Kalle


 On Thu, Oct 1, 2009 at 9:44 AM, zack1403 zack.mann...@gmail.com wrote:

 Hi Everyone,

 I have been looking through the docs and mailing list but cant find and
 answer to this.  What is the best way to get an autobuilt service from
 a
 separate thread?  I have a quartz job that needs one of my services but
 im
 not sure what i do to get it.

 Thanks,
 Zack
 --
 View this message in context:
 http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25701647.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




 --
 View this message in context:
 http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25702945.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-get-service-from-different-thread-tp25701647p25704884.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: Intermittent Stax Exception

2009-08-19 Thread zack1403

Ummm alright well I guess this is just a bug? We are switching the site
slowly back over to a more mature framework without all the bugs.  I am
having to rewrite this isolated page in php to get it working in the mean
time.  I guess I bet on the wrong horse with tapestry.

Zack
-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25049792.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: Intermittent Stax Exception

2009-08-19 Thread zack1403

Thanks for the points felix.  The real issue is that the exception is
intermittent.  I've closed the bug 2 times only to be opened again when
customers start calling. The page is incredibly simple and I can safely say
everything is split up as much as possible.  Its a simple unsubscribe page
very disconnected from the rest of the app. All my machines are on java 6.
Luckily I dont work on any non unix based systems so case sensitivity is not
an issue.

Is there still no way to turn off live class reloading?

Thanks again,
Zack


Felix Gonschorek-2 wrote:
 
 hi zack,
 
 i'am very sorry to hear that it was'nt possible to find a solution and
 that you 
 are going to switch the framework. we've had problems too but luckily we
 were 
 able to solve them all so far.
 
 since we are using tapestry we are way more productive than with other 
 frameworks or technologies before - i wish you could tell the same.
 
 here are some more tipps:
 
 - somtimes the page or page class rewriting fails - mostly if you access 
 services, session state object or symbols in event methods in nested
 method 
 calls. in these cases i divide and remove parts from the code until it
 starts to 
 work again and then i split up the method calls in several lines like:
 
 before:
 boolean result = myService1.serviceCall1(myOhterService2.serviceCall2());
 
 after:
 Bean b = myOtherService2.serviceCall2();
 boolean result = myService1.serviceCall1(b);
 
 - make absolutely sure, that you have the right dependencies in your path
 (maven 
 dependency tree).
 
 - use the latest jdk version
 
 - since you posted a stack trace with filesystem related problems before:
 check 
 the lower/UPPER case names of files (classes/tml/gfx). we have people over
 here 
 working with windows and since the windows filesystems don't make a
 differeence 
 between uppper and lower case problems occur first on unix machines.
 
 I am sure that you already knew my points, but maybe you missed one.
 
 I hope that you will finally find a solution.
 
 
 Felix
 

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051435.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: Intermittent Stax Exception

2009-08-19 Thread zack1403

The page works fine for ~24 hours before this exception starts to show up. If
the user.home property was not set it would probably error out first thing. 
I am not setting it anywhere else either.

Thanks,
Zack


martijn.list wrote:
 
 Afaics resolve only throws a NullPointerException when either parent or 
 child is null. The line numbers from the Stack trace do not exactly line 
 up with my Java so I don't know at what line the exception actually 
 occurs. I don't think child can be null because it is is the result of 
 File.getPath(). So, parent must be null (I guess :). That would suggest 
 that System.getProperty(user.dir) returns null (this is the parent 
 from the overloaded resolve(File f)).
 
 Just a wild guess
 
 Could it be that somewhere, somehow inside your code or code from a 
 library user.dir is set to null?
 
 Martijn Brinkers
 
 -- 
 Djigzo open source email encryption
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051489.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: Intermittent Stax Exception

2009-08-19 Thread zack1403

Yes


martijn.list wrote:
 
 Is your application the only web application running in the Servlet 
 container?
 
 Martijn
 
 

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051825.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: Intermittent Stax Exception

2009-08-07 Thread zack1403

Thanks for the help felix!  I regularly check the dependency hierarchy to
make sure there are not any big conflicts.  Commons-collections is
conflicted but thats it.  Nothing in woodstox or javassist.  I have had so
many issues like this lately with tapestry.  Its incredibly annoying and
time wasting.

Zack


Did you check that you don't have any dependencies which override tapestry 
dependencies? i had several time problems with woodstox and javassist when
there 
where wrong (mostly older) versions resolved (versions differing from
tapestry's 
(transitive) dependencies). the maven tree dependencies view in the eclipse 
m2eclipse plugin always helped me to solve the problems - i excluded the 
dependencies from other artifacts.


felix

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24867903.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: Intermittent Stax Exception

2009-08-06 Thread zack1403

Hey guys this has actually become a big issue as it is breaking a substantial
part of our app.  There is not a single line of my code in the trace.  Ive
tried upgrading to the most recent snapshot with the same results.  It
really looks like its a problem with woodstox.  Can anyone help me out?

Zack


zack1403 wrote:
 
 I am actually able to reproduce one situation where it shows up.  If I
 modify the source of ViewEmail.tml the exception shows up.  A restart
 promptly fixes it.  This is just one instance, as it will show up from
 time to time on production which is not being modified.  
 
 I'm not sure it is an issue with the file system as it is showing up on
 multiple machines and containers.  The example described above is using
 the jetty:run goal and my production machine is using Tomcat.  Is it
 possible Stax is trying to something funky and causing that exception?
 
 Zack
 
 

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24851235.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



Intermittent Stax Exception

2009-07-24 Thread zack1403

This issue is popping up randomly on my production app and I cant relate it
to any change.  The exception is also deep rooted in tapestry.  I can post
code if necessary but it is a very simple isolated page and the exception is
occurring at line 1 of the tml.  Any ideas?

Exception: http://pastebin.com/m757f075b

Thanks in advance,
Zack
-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24648581.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: Intermittent Stax Exception

2009-07-24 Thread zack1403

I am actually able to reproduce one situation where it shows up.  If I modify
the source of ViewEmail.tml the exception shows up.  A restart promptly
fixes it.  This is just one instance, as it will show up from time to time
on production which is not being modified.  

I'm not sure it is an issue with the file system as it is showing up on
multiple machines and containers.  The example described above is using the
jetty:run goal and my production machine is using Tomcat.  Is it possible
Stax is trying to something funky and causing that exception?

Zack


Thiago H. de Paula Figueiredo wrote:
 
 Em Fri, 24 Jul 2009 14:27:03 -0300, zack1403 zack.mann...@gmail.com  
 escreveu:
 
 This issue is popping up randomly on my production app and I cant relate  
 it to any change.  The exception is also deep rooted in tapestry.  I can  
 post code if necessary but it is a very simple isolated page and the  
 exception is occurring at line 1 of the tml.  Any ideas?
 
 Caused by: java.lang.NullPointerException
   at java.io.UnixFileSystem.resolve(UnixFileSystem.java:92)
   at java.io.UnixFileSystem.resolve(UnixFileSystem.java:118)
   at java.io.File.getAbsolutePath(File.java:501)
 
 The exception root is inside a Java class and it surely looks like a file  
 system issue.
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p24648952.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.0.5, XMLInputFactory class cast exception

2009-06-08 Thread zack1403

I have this same issue when I try to redeploy my app in Tomcat 6.  If you try
to redeploy a war file in Tomcat without restarting the server this
exception occurs.  It is really annoying to restart each time I deploy.
Anyone found a workaround for this?

Zack


Thiago H. de Paula Figueiredo wrote:
 
 On Wed, May 27, 2009 at 11:25 PM, sige sig...@yahoo.co.nz wrote:
 
 Hi
 
 Hi!
 
 Your problem looks like mismatched dependencies. Make sure you only
 have 5.1.0.5 Tapestry JARs in your classpath.
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5.1.0.5%2C-XMLInputFactory-class-cast-exception-tp23754162p23933248.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] Contributed master dispatcher not dispatching root url requests

2009-06-01 Thread zack1403

hey guys I'm still having this issue.  Am I implementing my dispatcher
incorrectly? 
-- 
View this message in context: 
http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23820220.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] Contributed master dispatcher not dispatching root url requests

2009-06-01 Thread zack1403

I am using 5.1.0.5.  My class is under the services package in the same place
as my app module. I added a breakpoint in my AuthDispatcher that the app
stops at for every page except the root.  If I go to the start page
(http://localhost/mycontext/start), the breakpoint is called.

I bound the dispatcher as if it were a service to see if that makes a
difference and it shows up as defined on startup but with the same behavior.

Thanks,
Zack


Howard Lewis Ship wrote:
 
 That looks good to me; the question is where this module class lives
 and is it being loaded?
 
 I.e. if you created a library to contain this module, that libarie's
 module may not be loaded. Look at the startup output in the console
 (in 5.1) to see which modules are being loaded and check the
 documentation to choose the right way to ensure your module is being
 loaded.
 
 On Mon, Jun 1, 2009 at 12:09 PM, zack1403 zack.mann...@gmail.com wrote:

 hey guys I'm still having this issue.  Am I implementing my dispatcher
 incorrectly?

 The code below works for every page but the root url
 (http://localhost/mycontext/):

 public void contributeMasterDispatcher(OrderedConfigurationDispatcher
 configuration) {
        configuration.addInstance(AuthDispatcher, AuthDispatcher.class,
 before:*);
    }
 --
 View this message in context:
 http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23820220.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
 Director of Open Source Technology at Formos
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23824440.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



[t5] Contributed master dispatcher not dispatching root url requests

2009-05-26 Thread zack1403

For authentication I have contributed a master dispatcher to be called
before:RootPath.  When visiting the root of my web app (not start), the
dispatcher does not get called.  I have tried changing when it is called
(before:Asset, etc) but cant seem to get it to stop at my breakpoint, even
though it does at every other request.

The dispatcher works fine except for my root url.  Is there a better time to
have the dispatcher called?

Zack
-- 
View this message in context: 
http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23734225.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] Contributed master dispatcher not dispatching root url requests

2009-05-26 Thread zack1403


Tried before:* with same result. I know its not caching and that its
actually processing the request because I can see the output in my console. 
Refreshing my root page runs without my dispatcher being called but if i
click on any links my breakpoint is triggered.  If I add 'start' to the base
url the breakpoint gets triggered as expected.

Zack


Thiago H. de Paula Figueiredo wrote:
 
 Try before:* and tell us if it solves your problem. It's possible that  
 PageRenderDispatcher is being invoked before yours. 
 

-- 
View this message in context: 
http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23735090.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Alright this is the simplest setup I could do.  This is way simpler than even
the example thats in the nightly docs.  I am getting the same error.  If
someone could please help me out as to what I am missing here I would be
eternally grateful.  This is the complete source, there is no other source
involved in this except what I am pasting.

Tml:

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

t:form
t:ajaxformloop source=strings value=currentString
t:textfield t:id=thefield value=currentString/
t:removeRowLinkBye!/t:removeRowLink
/t:ajaxformloop
/t:form

/html

Page:

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.TextField;

public class Test {

@Property
private ListString strings;

@Property
private String currentString;

@Component
private TextField theField;

void onActivate() {
strings = new ArrayListString();
strings.add(Hello);
strings.add(Heres a tester);
}

String onAddRow() {
return Added!;
}

void onRemoveRow(String toRemove) {
strings.remove(toRemove);
}
}

Sorry to be posting so much, I've just been pulling out my hair on this and
(as I'm sure you all understand) we have a very tight deadline to meet. 
Thank you all again for all the help!

Zack
-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23291616.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Well the thing is that its reproducible when I deploy on my staging server to
tomcat 6 from the generated war file.  As well as locally with jetty 6.1.6. 
I am using the maven plugin to run goal jetty:run locally.

Zack

Ulrich Stärk wrote:
 
 Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty 
 6.1.6 run from inside Eclipse. Could you elaborate on your environment? 
 Also give removing and reinstalling all libs a try and make sure that 
 there aren't multiple versions of the same lib in your classpath.
 
 Uli
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23297560.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread zack1403

Knowing that that simple example worked for everyone, I started hacking away
at my app module.  Finally narrowed down what was causing the issue:

   public void contributeMasterDispatcher(OrderedConfigurationDispatcher
configuration, @InjectService(AuthDispatcher) Dispatcher authDispatcher) {
 configuration.add(AuthDispatcher, authDispatcher,
before:PageRender);
 }

In this case, the error sure didn't help the situation at all.  I am pretty
sure I am adding my dispatcher correctly as it performs as expected
everywhere else.  For some reason it is messing with ajaxformloop.  Tested
my other ajaxformloops and they all work after commenting out these few
lines.  I guess I'm on to another issue of why this is causing issues :(

Really, thanks again for everyones help.  This error does sound like
something that is being misreported as it is unrelated to the actual cause.
Maybe a bug?

Zack


Ulrich Stärk wrote:
 
 Your exact same code is working fine using 5.1.0.5-SNAPSHOT on Jetty 
 6.1.6 run from inside Eclipse. Could you elaborate on your environment? 
 Also give removing and reinstalling all libs a try and make sure that 
 there aren't multiple versions of the same lib in your classpath.
 
 Uli
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23301366.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Hmm, the jumpstart example you gave uses t:submitnotifier as well as all
examples (even nightly docs).  The example you gave is running on 5.0.18. 
You are sure that example works on upgrade to 5.1.0.2? Even at the simplest
form I am still getting my exception.  The simplest possible form I could
get down to is in my first post (page, tml, and exception).  This is
happening application-wide once I upgraded so it must be something that has
changed internal to tapestry.  Is there a new way to use AjaxFormLoop that I
am missing.  Does onAddRow still return an Object?

Zack


Joost Schouten (mailing lists) wrote:
 
 The example at
 http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
 which I used as a guide worked well for me on 5.1.0.3.
 
 In your examples you use the t:submitnotifier. I never really used it
 but maybe you do some DOM alterations in those event methods that
 Tapestry doesn't like.
 
 Cheers,
 Joost
 
 On Tue, Apr 28, 2009 at 3:59 PM, zack1403 zack.mann...@gmail.com wrote:

 Hey I hate to bump but this is a huge blocker for me.  Is there more
 information I can give to try and help troubleshoot??

 --
 View this message in context:
 http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23269752.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23270804.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403
 = (LegalEntity)
 service.get(LegalEntity.class, legalEntityId);
                }

               �...@onevent(component = contactDetailForm, value =
 EventConstants.SUCCESS)
                private Object handleContactDetailSave() throws Exception
 {

                        //do the persisting
                }


  AjaxFormLoopEntityHolder **

 package com.joostschouten.common.http.tapestrybase.model;

 public class AjaxFormLoopEntityHolderT {

                private T entity;
                private Long key;
                private boolean newEntity = false;
                private boolean deleted = false;

                public AjaxFormLoopEntityHolder(T entity, boolean
 newEntity, Long key) {
                        this.entity = entity;
                        this.newEntity = newEntity;
                        this.key = key;
                }

                public T getEntity() {
                        return entity;
                }

                public void setEntity(T entity) {
                        this.entity = entity;
                }

                public Long getKey() {
                        return key;
                }

                public boolean isNew() {
                        return newEntity;
                }

                public boolean setDeleted(boolean deleted) {
                        return this.deleted = deleted;
                }

                public boolean isDeleted() {
                        return deleted;
                }

 }


        *** The tml file ***


                        form t:id=contactDetailForm

                                                div
 class=entityDetails
                                                        div
 t:id=contactDetailsAjaxLoop
                                                              
  t:delegate to=detailBlock/
                                                        /div

                                                /div

                                                ol class=formControls
                                                        li class=next
                                                                input
 t:id=contactDetailsSubmit
 t:value=message:jsportal.controls.save/
                                                        /li
                                                /ol

                                        /form
                                /t:block

                                t:block t:id=detailBlock
                                        div t:id=loopContactDetailthe
 form fields, in my case they
 come from a seperate component/div
                                /t:block

                                t:block id=addRowBlock
                                        div class=formControls
                                                div class=next
                                                        
 ${message:components.entities.EntitiesContactDetails.addNewContactInfo} 
                                                /div
                                        /div
                                /t:block

 I hope this is of use to you.

 Cheers,
 Joost

 On Tue, Apr 28, 2009 at 6:15 PM, zack1403 zack.mann...@gmail.com wrote:

 Hmm, the jumpstart example you gave uses t:submitnotifier as well as all
 examples (even nightly docs).  The example you gave is running on
 5.0.18.
 You are sure that example works on upgrade to 5.1.0.2? Even at the
 simplest
 form I am still getting my exception.  The simplest possible form I
 could
 get down to is in my first post (page, tml, and exception).  This is
 happening application-wide once I upgraded so it must be something that
 has
 changed internal to tapestry.  Is there a new way to use AjaxFormLoop
 that I
 am missing.  Does onAddRow still return an Object?

 Zack


 Joost Schouten (mailing lists) wrote:

 The example at
 http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
 which I used as a guide worked well for me on 5.1.0.3.

 In your examples you use the t:submitnotifier. I never really used it
 but maybe you do some DOM alterations in those event methods that
 Tapestry doesn't like.

 Cheers,
 Joost

 On Tue, Apr 28, 2009 at 3:59 PM, zack1403 zack.mann...@gmail.com
 wrote:

 Hey I hate to bump but this is a huge blocker for me.  Is there more
 information I can give to try and help troubleshoot??

 --
 View this message in context:
 http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23269752.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

Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Joost,

Are you using this code on 5.1.0.2?

Zack


Joost Schouten (mailing lists) wrote:
 
 Here is the code related to my AjaxFormLoop which works (besides a few
 non T5 related persistance issues in my own code ;-)
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23271622.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: Exception while http://localhost:8080/myapp/index.pageForm

2009-04-28 Thread zack1403

Wesley,

You can contribute a custom exception page in your module class:

public static void contributeApplicationDefaults(MappedConfigurationString,
String configuration) {

configuration.add(SymbolConstants.EXCEPTION_REPORT_PAGE,
ProductionException);
}

As for your initial issue, you should never have a url like 'index.form'
unless there was an unhandled exception on form submit.  It sounds like you
just arent redirecting after you post your form.

Zack


wesleywj2 wrote:
 
 that is the problem, typically when user close their browser, they will
 save the state as index.pageForm, i don't know why. they will either hit
 the refresh button or hit enter button on the address bar and cause this
 exception to be thrown. what's really uneasy is the exception shows up all
 the app server information. i know i can turn the app to production mode,
 but it just doesn't look nice. is there any way to throw custom exception
 page when it hits this error?
 
 please advice,
 wesley
 
 
 
 Onno Scheffers-3 wrote:
 
 You should type the url of your page in the browser and not the url of
 your
 component:
 http://localhost:8080/myapp/indexhttp://localhost:8080/myapp/index.pageForm
 
 Typing an URL in the browser typically causes a GET-request instead of a
 POST-request. The form-component is part of the page and will
 automatically
 POST its query-parameters to http://localhost:8080/myapp/index.pageForm
 when
 the form is submitted in the browser.
 
 
 - Onno
 
 
 
 On Mon, Apr 27, 2009 at 11:03 AM, wesleywj2 wesley...@yahoo.co.uk
 wrote:
 

 hi,

 when i type this url in my browser and hit enter,
 http://localhost:8080/myapp/index.pageForm
 it throws Forms require that the request method be POST and that the
 t:formdata query parameter have values. exception. index is my
 first/login
 page, where pageForm is the id of my form. why it throws error? anyway
 to
 intercept it? and show other page other than the standard exception
 page?

 please advice,
 wesley
 --
 View this message in context:
 http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23252483.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


 
 
 -- 
 *
 Winston
 Churchillhttp://www.brainyquote.com/quotes/authors/w/winston_churchill.html
 - The best argument against democracy is a five-minute conversation
 with
 the average voter.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23271706.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Upgraded to 5.1.0.3 with same result.  I also removed any hibernate entities
whatsoever.  I made an AjaxFormLoop of Strings and I get the same result. 
Has anyone out there ever gotten this error in any context I just cant
believe I am the only one having these issues, seeing as how even the
simplest use does not work.

Zack


Joost Schouten (mailing lists) wrote:
 
 I'm using 5.1.0.3
 
 On Tue, Apr 28, 2009 at 7:27 PM, zack1403 zack.mann...@gmail.com wrote:

 Joost,

 Are you using this code on 5.1.0.2?

 Zack


 Joost Schouten (mailing lists) wrote:

 Here is the code related to my AjaxFormLoop which works (besides a few
 non T5 related persistance issues in my own code ;-)



 --
 View this message in context:
 http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23271622.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23283509.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-27 Thread zack1403

Hey I hate to bump but this is a huge blocker for me.  Is there more
information I can give to try and help troubleshoot??

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23269752.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-26 Thread zack1403

I just cant believe no one else is getting this with 5.1.0.2.  Am I the only
one having this issue? BTW, its happening with my AjaxFormLoops application
wide so its not just limited to one instance.

Zack

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23248767.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-24 Thread zack1403

A single text field still triggers the exception.


Thiago H. de Paula Figueiredo wrote:
 
 On Fri, Apr 24, 2009 at 1:34 AM, zack1403 zack.mann...@gmail.com wrote:
 
 Is there something with the setup that I am doing wrong?
 
 Try using a TextField directly, without using BeanEditor and tell us
 what happens.
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23222870.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-23 Thread zack1403

Seems like this would be a pretty common exception since the most basic form
of the component does not work. I mean this is way more basic than even the
tutorial.  

Is there something with the setup that I am doing wrong?

Zack
-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23209682.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-22 Thread zack1403

I trimmed my source down to the simplest form trying to isolate the issue.  I
pasted in the simplest form I could get to.  My original contains a number
of elements including a bean edit form:

t:submitnotifier
div t:type=beaneditor t:id=currentcomparison /
t:removerowlinkRemove/t:removerowlink
/t:submitnotifier

It yields the same exception.  There were many more elements in there when
the exception was first thrown.  Tried to trim out any mistake I might be
making and was left with the most basic AjaxFormLoop.  

Zack


Howard Lewis Ship wrote:
 
 t:ajaxformloop source=comparisons value=currentcomparison
 encoder=comparisonsencoder
t:parameter name=addRow
t:addrowlinkAdd a Comparison/t:addrowlink
/t:parameter
t:submitnotifier
t:removerowlinkRemove/t:removerowlink
/t:submitnotifier
 /t:ajaxformloop
 
 Shouldn't there be a TextField or something in there?
 
 The rather odd error is that Tapestry has to hunt around to find a
 conforming location to add a hidden field; typically inside a p or
 before an input tag. Your AjaxFormLoop has, effectively, no body and
 so no content gets written, and Tapestry can't figure out where to add
 the hidden field.
 
 On Wed, Apr 22, 2009 at 11:52 AM, zack1403 zack.mann...@gmail.com wrote:

 When I upgraded to 5.1.0.2 my AjaxFormLoops throw exceptions upon trying
 to
 add a row.  Remove row links still work and the transaction is getting
 committed even when there is an exception.  Ie, if I refresh the page
 after
 blackbird shows the exception I can see my added row.  I have trimmed
 down
 my code to the simplest possible AjaxFormLoop example and an exception is
 still being thrown.  Should I be returning something other than an Object
 from my onAddRow method?

 Exception:

 [ERROR] 35:15
 (DefaultRequestExceptionHandler.java:handleRequestException:62)
 Processing
 of request failed with uncaught exception: The rendered content did not
 include any elements that allow for the positioning of the hidden form
 field's element.
 java.lang.IllegalStateException: The rendered content did not include any
 elements that allow for the positioning of the hidden form field's
 element.
        at
 org.apache.tapestry5.corelib.internal.HiddenFieldPositioner.getElement(HiddenFieldPositioner.java:74)
        at
 org.apache.tapestry5.corelib.components.FormInjector$1.renderMarkup(FormInjector.java:234)
        at
 org.apache.tapestry5.internal.services.PageRenderQueueImpl$Bridge.renderMarkup(PageRenderQueueImpl.java:62)
        at
 org.apache.tapestry5.corelib.components.AjaxFormLoop$10.renderMarkup(AjaxFormLoop.java:415)
        at
 org.apache.tapestry5.internal.services.PageRenderQueueImpl$Bridge.renderMarkup(PageRenderQueueImpl.java:62)
        at
 org.apache.tapestry5.internal.services.PageRenderQueueImpl.renderPartial(PageRenderQueueImpl.java:159)

 Page class snippet:

   @CommitAfter
    public Comparison onAddRow() {
        return new Comparison();
    }

 Template snippet:
 t:ajaxformloop source=comparisons value=currentcomparison
 encoder=comparisonsencoder
        t:parameter name=addRow
                t:addrowlinkAdd a Comparison/t:addrowlink
        /t:parameter
        t:submitnotifier
                t:removerowlinkRemove/t:removerowlink
        /t:submitnotifier
 /t:ajaxformloop

 Any help would be much appreciated.
 --
 View this message in context:
 http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23175801.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
 Director of Open Source Technology at Formos
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23187859.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: A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-17 Thread zack1403

Ugh sorry about the poorly formatted question. It was one of those issues
that seemed so clear when I posted it but looking back there wasn't a good
amount of information.  I figured it was merely an upgrade issue that I
wasnt aware of when moving to 5.1.

What was actually happening, for anyone else that might get this message,
was that I was calling element.close() one too many times.  Normally I would
run into the 'you have rendered unbalanced elements' exception but it just
so happens that i was making sure that there werent any in my cleanup
method.  The HTML element was actually being closed and LI elements were
being created after, hence the multiple root elements.

Anywho thanks for the suggestions guys, I provide more stripped down
snippets in the future :)


Howard Lewis Ship wrote:
 
 http://www.catb.org/~esr/faqs/smart-questions.html
 
 -- 
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 Director of Open Source Technology at Formos
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-document-must-have-exactly-one-root-element-exception-on-5.1.0.2-upgrade.-tp23014335p23104665.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: A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-14 Thread zack1403

Anyone have a thought on this? I have no idea where to go from here.

-- 
View this message in context: 
http://www.nabble.com/A-document-must-have-exactly-one-root-element-exception-on-5.1.0.2-upgrade.-tp23014335p23049185.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



A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-12 Thread zack1403

Hey all,

Just upgraded to 5.1.0.2 and am getting this exception:

Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: A
document must have exactly one root element. Element html is already the
root element. [at classpath:com/inavero/pulse/pages/report/Edit.tml, line
78]
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:948)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$400(ComponentPageElementImpl.java:49)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.callback(ComponentPageElementImpl.java:159)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeforeRenderBodyPhase.render(ComponentPageElementImpl.java:302)
at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:74)
... 74 more
Caused by: java.lang.IllegalStateException: A document must have exactly one
root element. Element html is already the root element.
at
org.apache.tapestry5.internal.services.MarkupWriterImpl.element(MarkupWriterImpl.java:147)

Component works fine before upgrade but breaks after.  Exception is on the
'writer.element(li)' line in beforeRenderBody.  Here is the component
source: http://pastebin.com/m16768df7

Thanks!
Zack
-- 
View this message in context: 
http://www.nabble.com/A-document-must-have-exactly-one-root-element-exception-on-5.1.0.2-upgrade.-tp23014335p23014335.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



T5 Bean editor model override

2009-02-20 Thread zack1403

When following the instructions at:
http://tapestry.apache.org/tapestry5/guide/beaneditform.html to contribute a
property editor, I am getting this error:

Bean editor model for com.inavero.pulse.entities.Report already contains a
property model for property 'project'.

How can I tell tapestry to use my overridden block?

Thanks in advance,
Zack
-- 
View this message in context: 
http://www.nabble.com/T5-Bean-editor-model-override-tp22128741p22128741.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 Bean editor model override

2009-02-20 Thread zack1403

My unsureness with overriding a property model betrayed me.  

I was trying to add project to the beaneditor when it was set up to
override automatically. I removed t:add=project from one of my bean
editors and it worked fine.

Zack

zack1403 wrote:
 
 When following the instructions at:
 http://tapestry.apache.org/tapestry5/guide/beaneditform.html to contribute
 a property editor, I am getting this error:
 
 Bean editor model for com.inavero.pulse.entities.Report already contains a
 property model for property 'project'.
 
 How can I tell tapestry to use my overridden block?
 
 Thanks in advance,
 Zack
 

-- 
View this message in context: 
http://www.nabble.com/T5-Bean-editor-model-override-tp22128741p22130955.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: Confirm(are you sure want to delete) in LinkSubmit

2009-02-05 Thread zack1403

Hey guys sorry to resurrect this issue.  I just got around to fixing this bug
:)  When I try an inline confirm with javascript on a LinkSubmit (t5)
component it will always submit the form.  I know that javascript cant
assure order of events.  Is this basically an issue that doesnt have a
solution? Or I guess the solution is no confirm with javascript?

Zack


Martijn Brinkers (List)-2 wrote:
 
 Could you check if the Event.stop(event) works when used directly from
 the onclick event handler?
 
 So in you page tml file use something like:
 
 input  onclick=Event.stop(event); alert('event was stopped'); /
 
 Martijn
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21847254.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: Confirm(are you sure want to delete) in LinkSubmit

2009-02-05 Thread zack1403

Does anyone have a confirm mixin (or other js mixin) applied to a LinkSubmit
component? If so, howd you do it?

Zack


Thiago H. de Paula Figueiredo wrote:
 
 On Thu, Feb 5, 2009 at 9:21 AM, zack1403 zack.mann...@gmail.com wrote:
 
 If you read up the thread a bit you would see that that was the last test
 that was asked to see what was working.  People have pasted in that link
 3
 times without reading anything else from the thread!
 
 I'm sorry, but, at least in my Gmail, the message I answered was the
 first one. Somehow the thread was broken to me.
 Your problem is completely Prototype-related, though. I suggest you to
 look at its documentation to find out the answer you need.
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21849593.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: Confirm(are you sure want to delete) in LinkSubmit

2009-02-05 Thread zack1403

If you read up the thread a bit you would see that that was the last test
that was asked to see what was working.  People have pasted in that link 3
times without reading anything else from the thread!  I already understand
how to work with tapestry and js!  My issue is applying my confirm or other
js mixins to a LinkSubmit component.  It doesnt matter how I try to stop the
event it still submits the form.  

My use case is that for an important form I just want to confirm before they
submit.  If they press cancel the form submit event should cancel (one would
hope).  If anyone can shed light on this that would be great.

Zack


Thiago H. de Paula Figueiredo wrote:
 
 On Thu, Feb 5, 2009 at 6:34 AM, zack1403 zack.mann...@gmail.com wrote:
 
 Hey guys sorry to resurrect this issue.  I just got around to fixing this
 bug
 :)  When I try an inline confirm with javascript on a LinkSubmit (t5)
 component it will always submit the form.  I know that javascript cant
 assure order of events.  Is this basically an issue that doesnt have a
 solution? Or I guess the solution is no confirm with javascript?
 
 Neven inline Javascript, use RenderSupport.addScript(). More info at
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained.
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21849515.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: Intercepting the body of a component

2009-01-17 Thread zack1403

Any progress on being able to grab  and render the component body from the
component class?  I am writing a component that has to display data
recursively and this seems like the best option.

Thanks,
Zack


Howard Lewis Ship wrote:
 
 This is one of those cases that is, somewhat delibrately, not covered
 by T5 directly.
 
 I think you are on to something: capturing the Element and working
 your way into the body to re-write the markup generated by the
 components
 in the body.
 
 Tapestry uses a very light-weight DOM; I wonder if it would be
 possible to hook an existing XPath engine up to it?
 
 
 On Nov 8, 2007 5:55 PM, Andy Huhn amh...@insightbb.com wrote:
 Hello,

 I'm trying to write a component that allows Tapestry to render its body
 into the MarkupWriter, and then it performs string substitutions on the
 MarkupWriter to transform the output before it is sent back to the
 client.  Any ideas?

 I've looked through a bunch of the source code, and I can't find any
 built-in components that examine their body, or that even are aware of
 their body (other than to return true or false from beginRenderBody).

 I thought about using an AfterRender method, getting the MarkupWriter,
 and using XPath or some other means to manipulate the latest elements
 added.  But it appears that the MarkupWriter doesn't support XPath.

 Help?

 Thanks,
 Andy

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


 
 
 
 -- 
 Howard M. Lewis Ship
 Partner and Senior Architect at Feature50
 
 Creator Apache Tapestry and Apache HiveMind
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Intercepting-the-body-of-a-component-tp13660086p21522507.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: how to install t5components library

2008-12-13 Thread zack1403

http://87.193.218.134:8080/t5components/

 dependency
groupIdorg.apache.tapestry/groupId
artifactIdt5c-contrib/artifactId
version${tapestry-components-version}/version
/dependency
dependency
groupIdorg.apache.tapestry/groupId
artifactIdt5c-commons/artifactId
version${tapestry-components-version}/version
/dependency
tapestry-components-version0.5.17/tapestry-components-version

Zack


Joe123 --- wrote:
 
 
 Hi,
 
 Sorry for this dumb question, but I can't find any documentation about how
 I can install the t5component library.
 
 Is there any info about this?
 
 Any help is welcome.
 
 thnx
 J.
 
 _
 Connect to the next generation of MSN Messenger 
 http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
 

-- 
View this message in context: 
http://www.nabble.com/how-to-install-t5components-library-tp20988551p20988573.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: Confirm(are you sure want to delete) in action link

2008-12-12 Thread zack1403

I am using the confirm functionality as a component and am having similar
problems.  Confirm does not work with the linkSubmit component.  It is
currently a major bug in my app. 

Zack

Tan cyb...@n wrote:
 
 hi,
 
 i'm a newbie in  tapestry.  may i know is it possible to do like:
 
 t:actionlink t:zone=zoneFormView t:id=toolbarDel t:context=${id}
 onclick=if(!confirm('Are you sure want to delete?')) return
 false;button images/deleteRecord24.png /button/t:actionlink
 
 I have tried to put in button as well, but after choose cancel.  it will
 still submit.  May i know how to avoid the postback?
 Thank you.
 
 Tan
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20971604.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: Confirm(are you sure want to delete) in action link

2008-12-12 Thread zack1403

When I first wrote my confirm component this is the example I used.  This
issue is that with linksubmit, i am not able to stop the submit event.  When
I confirm for an important form, the user clicks cancel, the form still
submits.  My source is pretty much the exact same as the example.  I have
looked into it a bit but couldnt find a way to grab submit event to stop it.

Zack


Andy Pahne-6 wrote:
 
 Tan cyb...@n schrieb:
 hi,

 i'm a newbie in  tapestry.  may i know is it possible to do like:

 t:actionlink t:zone=zoneFormView t:id=toolbarDel t:context=${id}
 onclick=if(!confirm('Are you sure want to delete?')) return
 false;button images/deleteRecord24.png  //button/t:actionlink

 I have tried to put in button as well, but after choose cancel.  it
 will
 still submit.  May i know how to avoid the postback?
 Thank you.

 Tan

   
 
 It is possible, have a look:
 
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained
 
 full source code included.
 
 Andy
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20973370.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: Confirm(are you sure want to delete) in action link

2008-12-12 Thread zack1403

My component uses Event.stop and it wont actually stop the form submit.


Martijn Brinkers (List)-2 wrote:
 
 I think it's more a prototype issue than a Tapestry issue
 
 I think you can stop the event with:
 
 Event.stop(event);
 
 So your onclick should look something like
 
 onclick=if(!confirm('Are you sure want to delete?'))
 Event.stop(event);
 
 
 Regards,
 
 Martijn Brinkers
  
 
 On Fri, 2008-12-12 at 11:25 +0100, Andy Pahne wrote:
 This is sad. We cannot even fill a JIRA, because Confirm is not part 
 of the framework.
 
 Andy
 
 
 
 zack1403 schrieb:
  I am using the confirm functionality as a component and am having
 similar
  problems.  Confirm does not work with the linkSubmit component.  It is
  currently a major bug in my app. 
 
  Zack
 
  Tan cyb...@n wrote:

  hi,
 
  i'm a newbie in  tapestry.  may i know is it possible to do like:
 
  t:actionlink t:zone=zoneFormView t:id=toolbarDel
 t:context=${id}
  onclick=if(!confirm('Are you sure want to delete?')) return
  false;button images/deleteRecord24.png /button/t:actionlink
 
  I have tried to put in button as well, but after choose cancel.  it
 will
  still submit.  May i know how to avoid the postback?
  Thank you.
 
  Tan
 
 
  
 

 
 
 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20973719.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



NPE with ajax form loop

2008-12-12 Thread zack1403

When following the documentation for ajaxformloop to the t, I am getting this
error when trying to add a row.  The only difference is that I am
implementing the value encoder as a service:

Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException [at
classpath:com/inavero/pulse/pages/survey/ManageQuestions.tml, line 37,
column 85]
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:932)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$200(ComponentPageElementImpl.java:50)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11.render(ComponentPageElementImpl.java:356)
at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
... 107 more
Caused by: java.lang.NullPointerException
at
org.apache.tapestry5.corelib.components.AjaxFormLoop$1.addRemoveRowTrigger(AjaxFormLoop.java:157)
at
org.apache.tapestry5.corelib.components.RemoveRowLink.beginRender(RemoveRowLink.java:54)
at
org.apache.tapestry5.corelib.components.RemoveRowLink.beginRender(RemoveRowLink.java)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:352)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:917)

Any thoughts?
-- 
View this message in context: 
http://www.nabble.com/NPE-with-ajax-form-loop-tp20972086p20972086.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] Palette NPE

2008-12-04 Thread zack1403

Alright, my list I was feeding palette was set to final and was instantiated
with a new list.  By removing the final and instantiation the issue went
away.  Should I file this as a bug?

Zack


zack1403 wrote:
 
 Happening again using GenericSelectModel for model and encoder.  Anyone
 have any clue what I might be doing wrong? I discarding persistent field
 changes after a certain action so I have a fresh start when it happens
 each time.  I seems completely random why this is showing up.
 
 Zack
 
 
 zack1403 wrote:
 
 Unfortunately I was passing it a List :(  Hasn't happened since I stared
 using GenericSelectModel for both model and encoder but thats not to say
 it wont.  Thanks anyways!
 
 Zack
 
 
 James Hillyerd wrote:
 
 Probably not related to your problem, but I was seeing an NPE from the
 exact
 same line of code when passing the palette a Set (instead of a List).
 
 -james
 
 On Wed, Dec 3, 2008 at 11:27 AM, zack1403 [EMAIL PROTECTED]
 wrote:
 

 Ive overridden both equals and hashCode (neither were overridden
 before)
 and
 have been waiting for the issue to reproduce.  It is very intermittent
 and
 a
 simple f5 makes it go away which is frustrating.  I also am trying
 using
 GenericSelectModel as the encoder and model which might make the issue
 go
 away.  Ill follow up if that fixes it.  Thanks!

 Zack


 Nicolas Charles wrote:
 
  I just had this issue; it was because the object overrided the
 equals
  method, but not hashCode, hence the selected object couldn't be
 found
  in the selected set.
 
  Nick
 
 

 --
 View this message in context:
 http://www.nabble.com/-T5--Palette-NPE-tp20652729p20819782.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 -- 
 James A. Hillyerd [EMAIL PROTECTED]
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Palette-NPE-tp20652729p20829014.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] Palette NPE

2008-12-03 Thread zack1403

Ive overridden both equals and hashCode (neither were overridden before) and
have been waiting for the issue to reproduce.  It is very intermittent and a
simple f5 makes it go away which is frustrating.  I also am trying using
GenericSelectModel as the encoder and model which might make the issue go
away.  Ill follow up if that fixes it.  Thanks!

Zack


Nicolas Charles wrote:
 
 I just had this issue; it was because the object overrided the equals 
 method, but not hashCode, hence the selected object couldn't be found 
 in the selected set.
 
 Nick
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Palette-NPE-tp20652729p20819782.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] Palette NPE

2008-12-03 Thread zack1403

Unfortunately I was passing it a List :(  Hasn't happened since I stared
using GenericSelectModel for both model and encoder but thats not to say it
wont.  Thanks anyways!

Zack


James Hillyerd wrote:
 
 Probably not related to your problem, but I was seeing an NPE from the
 exact
 same line of code when passing the palette a Set (instead of a List).
 
 -james
 
 On Wed, Dec 3, 2008 at 11:27 AM, zack1403 [EMAIL PROTECTED] wrote:
 

 Ive overridden both equals and hashCode (neither were overridden before)
 and
 have been waiting for the issue to reproduce.  It is very intermittent
 and
 a
 simple f5 makes it go away which is frustrating.  I also am trying using
 GenericSelectModel as the encoder and model which might make the issue go
 away.  Ill follow up if that fixes it.  Thanks!

 Zack


 Nicolas Charles wrote:
 
  I just had this issue; it was because the object overrided the equals
  method, but not hashCode, hence the selected object couldn't be found
  in the selected set.
 
  Nick
 
 

 --
 View this message in context:
 http://www.nabble.com/-T5--Palette-NPE-tp20652729p20819782.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 -- 
 James A. Hillyerd [EMAIL PROTECTED]
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Palette-NPE-tp20652729p20825265.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] Palette NPE

2008-11-29 Thread zack1403

Bump for help on this?  Is the because genericSelectModel.getOptionGroups
returns null?  

This occurs intermitently and I havent been able to find a workaround.

Zack


zack1403 wrote:
 
 Hey All,
 
 I'm getting a NullPointerException when the palette component in 5.0.16:
 
 Caused by: java.lang.NullPointerException
   at
 org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49)
   at
 org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147)
   at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164)
   at
 org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
 
 I'm populating the palette using the code below:
 
 selectEncoder = new
 GenericValueEncoderStringBean(this.spreadsheetHeaders);
 selectModel = new GenericSelectModelStringBean(this.spreadsheetHeaders,
 StringBean.class, value, value, propertyAccess);
 
 Am I using this correctly?
 
 Thanks,
 Zack
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Palette-NPE-tp20652729p20753832.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Q : paging using loop component ?

2008-11-24 Thread zack1403

You probably want to check out t5 components
(http://87.193.218.134:8080/t5components/t5c-commons/ref/index.html). 
Specifically the pagedLoop component.

Zack


dwi ardi irawan wrote:
 
 does anybody could give me information how to do paging using loop
 component
 in tapestry 5
 
 thnx u very much ^_^v
 
 -- 
 http://dwiardiirawan.blogspot.com
 cos everyone could be extraordinary...lighten up !
 
 

-- 
View this message in context: 
http://www.nabble.com/Q-%3A-paging-using-loop-component---tp20636732p20672176.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[T5] Palette NPE

2008-11-23 Thread zack1403

Hey All,

I'm getting a NullPointerException when the palette component in 5.0.16:

Caused by: java.lang.NullPointerException
at
org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49)
at
org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164)
at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)

I'm populating the palette using the code below:

selectEncoder = new
GenericValueEncoderStringBean(this.spreadsheetHeaders);
selectModel = new GenericSelectModelStringBean(this.spreadsheetHeaders,
StringBean.class, value, value, propertyAccess);

Am I using this correctly?

Thanks,
Zack
-- 
View this message in context: 
http://www.nabble.com/-T5--Palette-NPE-tp20652729p20652729.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[T5] AjaxFormLoop - Unable to convert serialized id back into an object.

2008-09-11 Thread zack1403

Hey All,

I'm getting a recurring error that seems to have been fixed here:
https://issues.apache.org/jira/browse/TAPESTRY-2436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

I am using AjaxFormLoop 3 times in my template and simply trying to do a
master detail save.  There is very little documentation on the component so
please let me know if I'm doing something wrong here.  I have AjaxFormLoop
working one other place but it was very buggy.  Any help would be much
appreciated!!

java: http://pastebin.com/m4eacc33c
tml: http://pastebin.com/m5b3d6c9c
stacktrace:http://pastebin.com/m6acc23c

-- 
View this message in context: 
http://www.nabble.com/-T5--AjaxFormLoop---Unable-to-convert-serialized-id-back-into-an-object.-tp19430389p19430389.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: loom, a tiny eclipse-plugin for tapestry5

2008-06-16 Thread zack1403

Works great for me now Christian! Looking forward to further features!

Zack

Christian Scheid wrote:
 
 I changed the shortcut configuration for the switch file feature and now
 it
 works for me on my osx and windows machine using ctrl+alt+x.
 Would be glad if someone could give it a go to see if the new shortcut
 binding works well for you.
 The fix is available in version 1.0.2 which is available through the
 update-site
 
 

-- 
View this message in context: 
http://www.nabble.com/loom%2C-a-tiny-eclipse-plugin-for-tapestry5-tp17789434p17868347.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: loom, a tiny eclipse-plugin for tapestry5

2008-06-13 Thread zack1403

Hi Christian,

I like the thought of some eclipse helper actions for tapestry 5
development!  I installed your plugin but the shortcut isnt working.  With a
tml open I should just be able to press CTRL-ALT-x right?

Thanks,
Zack

Christian Scheid wrote:
 
 Hey list,
 
 i created a tiny plugin to simplify my daily work in eclipse with
 tapestry5
 and wanted to share this plugin with you as
 someone might find it useful.
 The only implemented function the plugin provides at the moment is a
 functionality to
 switch between a template file and java component/class file and vice
 versa
 in the java editor.
 I implemented this function in order to use with eclipse 3.3.x and
 tapestry
 5.
 To make it usable for earlier tapestry 5 versions i implemented also a
 switch to use .html template files (instead of .tml)  which can be found
 in
 the Loom Preferences Page.
 More information about the plugin and how to install it can be found on
 the
 project page:
 
 http://code.google.com/p/loom-t5/
 
 cheers,
 
 christian
 
 

-- 
View this message in context: 
http://www.nabble.com/loom%2C-a-tiny-eclipse-plugin-for-tapestry5-tp17789434p17816080.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[T5] javassit exception? I have no idea...

2008-06-13 Thread zack1403

Anyone know what to make of this error?  It showed up out of nowhere and it
wont seem to go away :\  Is it an issue with tapestry or my environment
(Ubuntu 8, java 1.6)?

Thanks in advance,
Zack
org.apache.tapestry5.internal.services.RenderQueueException: Render queue
error in BeginRender[survey/Index:pagelink]:
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for com.inavero.pulse.pages.survey.Add [at
classpath:com/inavero/pulse/pages/survey/Index.tml, line 5, column 122]
at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:80)
at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:108)
at 
$PageRenderQueue_11a80a1a18c.render($PageRenderQueue_11a80a1a18c.java)
at 
$PageRenderQueue_11a80a1a186.render($PageRenderQueue_11a80a1a186.java)
at
org.apache.tapestry5.services.TapestryModule$14.renderMarkup(TapestryModule.java:1128)
at
org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1472)
at
$MarkupRenderer_11a80a1a18e.renderMarkup($MarkupRenderer_11a80a1a18e.java)
at
org.apache.tapestry5.services.TapestryModule$22.renderMarkup(TapestryModule.java:1453)
at
$MarkupRenderer_11a80a1a18e.renderMarkup($MarkupRenderer_11a80a1a18e.java)
at
org.apache.tapestry5.services.TapestryModule$21.renderMarkup(TapestryModule.java:1435)
at
$MarkupRenderer_11a80a1a18e.renderMarkup($MarkupRenderer_11a80a1a18e.java)
at
org.apache.tapestry5.services.TapestryModule$20.renderMarkup(TapestryModule.java:1415)
at
$MarkupRenderer_11a80a1a18e.renderMarkup($MarkupRenderer_11a80a1a18e.java)
at
$MarkupRenderer_11a80a1a18a.renderMarkup($MarkupRenderer_11a80a1a18a.java)
at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:55)
at
$PageMarkupRenderer_11a80a1a188.renderPageMarkup($PageMarkupRenderer_11a80a1a188.java)
at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57)
at
$PageResponseRenderer_11a80a1a105.renderPageResponse($PageResponseRenderer_11a80a1a105.java)
at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:59)
at
org.apache.tapestry5.services.TapestryModule$28.handle(TapestryModule.java:1672)
at
$PageRenderRequestHandler_11a80a1a106.handle($PageRenderRequestHandler_11a80a1a106.java)
at
$PageRenderRequestHandler_11a80a1a0fb.handle($PageRenderRequestHandler_11a80a1a0fb.java)
at
org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:97)
at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:73)
at $Dispatcher_11a80a1a101.dispatch($Dispatcher_11a80a1a101.java)
at $Dispatcher_11a80a1a0f2.dispatch($Dispatcher_11a80a1a0f2.java)
at
org.apache.tapestry5.services.TapestryModule$12.service(TapestryModule.java:938)
at com.inavero.pulse.services.AppModule$3.service(AppModule.java:111)
at $RequestFilter_11a80a1a0f1.service($RequestFilter_11a80a1a0f1.java)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:586)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:75)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
at $RequestHandler_11a80a1a0f3.service($RequestHandler_11a80a1a0f3.java)
at $RequestHandler_11a80a1a0ea.service($RequestHandler_11a80a1a0ea.java)
at
org.apache.tapestry5.services.TapestryModule$11.service(TapestryModule.java:918)
at
org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
at

Re: [T5] javassit exception? I have no idea...

2008-06-13 Thread zack1403

Add.java = http://pastebin.com/m6f3771f6

I am able to cause the error by adding a throw/catch around my session.save.
Although that is in the onSubmit() method so it shouldnt actually be running
on page load.

Zack

9902468 wrote:
 
 If possible please attach also the page (Add.java) and corresponding
 template.
 
  -99
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--javassit-exception--I-have-no-idea...-tp17816167p17816493.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] javassit exception? I have no idea...

2008-06-13 Thread zack1403

Hi Peter,

Thanks for your help. Didn't know the two issues were one in the same.  Damn
you javassist!

Zack


Peter Stavrinides wrote:
 
 Hi Zack
 
 These are well known issues with Javassist and JDK 6, see:
 
 http://www.nabble.com/TransformationException-ClassNotFoundException-td17156180.html#a17182647
 http://www.nabble.com/Re%3A-T5%3A-TransformationException-p16541145.html
 
 In your case though you might be able to work around it by adding an
 onException handler to deal with the exceptions? If not, then another
 thing you could try is not catch Exception, but catch only
 HibernateException, that 'might' work. 
 
 cheers, 
 Peter
 
 - Original Message -
 From: zack1403 [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Sent: Friday, 13 June, 2008 10:11:05 AM GMT +02:00 Athens, Beirut,
 Bucharest, Istanbul
 Subject: Re: [T5] javassit exception? I have no idea...
 
 
 Add.java = http://pastebin.com/m6f3771f6
 
 I am able to cause the error by adding a throw/catch around my
 session.save.
 Although that is in the onSubmit() method so it shouldnt actually be
 running
 on page load.
 
 Zack
 
 9902468 wrote:
 
 If possible please attach also the page (Add.java) and corresponding
 template.
 
  -99
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/-T5--javassit-exception--I-have-no-idea...-tp17816167p17816493.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--javassit-exception--I-have-no-idea...-tp17816167p17823745.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: loom, a tiny eclipse-plugin for tapestry5

2008-06-13 Thread zack1403

Ah there it is! I am running ubuntu which looks like it turns the shortcut
into Alt X which unfortunately opens the XML menu instead of switching to
the page.  Also, is it supposed to switch from the page to the template?
Because it doesnt seem to work there even though there is no xml menu :\ It
does work if i click the navigate button however.  I would be interested in
contributing some code to an t5 eclipse plugin of some sort down the road
though!

Zack


Christian Scheid wrote:
 
 Hey Zack,
 
 thanks for checking it out!
 What OS are you running? I only tested it under OSX and the shortcut is
 Ctrl+Option X. I think i read something in the eclipse docs that modifiers
 can differ on OS's.
 You can use the action and see the shortcut if you use the action from the
 menubar:
 
 Navigate  Go To  Switch To Template/JavaFile
 
 Let me know how you go.
 
 cheers,
 
 christian
 
 
 
 On Fri, Jun 13, 2008 at 6:37 PM, zack1403 [EMAIL PROTECTED] wrote:
 

 Hi Christian,

 I like the thought of some eclipse helper actions for tapestry 5
 development!  I installed your plugin but the shortcut isnt working. 
 With
 a
 tml open I should just be able to press CTRL-ALT-x right?

 Thanks,He
 Zack

 Christian Scheid wrote:
 
  Hey list,
 
  i created a tiny plugin to simplify my daily work in eclipse with
  tapestry5
  and wanted to share this plugin with you as
  someone might find it useful.
  The only implemented function the plugin provides at the moment is a
  functionality to
  switch between a template file and java component/class file and vice
  versa
  in the java editor.
  I implemented this function in order to use with eclipse 3.3.x and
  tapestry
  5.
  To make it usable for earlier tapestry 5 versions i implemented also a
  switch to use .html template files (instead of .tml)  which can be
 found
  in
  the Loom Preferences Page.
  More information about the plugin and how to install it can be found on
  the
  project page:
 
  http://code.google.com/p/loom-t5/
 
  cheers,
 
  christian
 
 

 --
 View this message in context:
 http://www.nabble.com/loom%2C-a-tiny-eclipse-plugin-for-tapestry5-tp17789434p17816080.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/loom%2C-a-tiny-eclipse-plugin-for-tapestry5-tp17789434p17825656.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T3: Stop back button

2008-06-02 Thread zack1403

Do you really think this is the right thread for that question? Also, I doubt
posting the same question twice will increase your chances of having it
answered. In relation to your question, just make sure that the user cant
access or makes changes to the survey if it has already been submitted .
Don't take the back button away from users. If you need more help, I would
start another topic (but really I would just do some basic research before
posting again).

Zack


James Sherwood wrote:
 
 Hello,
 
 Our application submits a form then shows the results(like a survey form). 
 Problem is the users can hit the browser's back button and see the form 
 again and we do not want that.  Any ideas how to make it show anything but 
 the form?
 
 --James
 
 - Original Message - 
 From: Javier Sanchez [EMAIL PROTECTED]
 To: Tapestry users users@tapestry.apache.org
 Sent: Friday, May 30, 2008 6:46 PM
 Subject: Re: T3: Stop back button
 
 
 Isn't obvious?  What exactly do you want your application to do?

 On Fri, May 30, 2008 at 1:46 PM, James Sherwood 
 [EMAIL PROTECTED]
 wrote:

 Hello all,

 We are using tapestry 3.  We need to make it so when a user submits a 
 form
 and then presses the back button, it does not show them the form.

 Any ideas?

 --James



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





 __ Information from ESET Smart Security, version of virus 
 signature database 3148 (20080530) __

 The message was checked by ESET Smart Security.

 http://www.eset.com
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T3: Stop back button

2008-06-02 Thread zack1403

No worries James.  A pet peeve of mine is people posting their questions in
unrelated threads with the hope of help when they have been unsuccessful
elsewhere (which it just sounds like you made a mistake).  I develop for a
market research company and your problem has come up a couple times.  Modern
browsers will almost always cache what was on the previous page so this is
usually a tough issue.  Have you thought about doing it all with ajax?   
You should then be able to control the survey how you want. Or use js to
hide the form on submit of each page might work. If users that dont have js
enabled is an issue, then I dont know a clear (or possible) solution to your
issue.


James Sherwood wrote:
 
 Zack,
 
 1: I just posted it to the Tapestry mailing list so I am not sure how you 
 view the list and why you say its in the wrong spot.
 2: I did not post 2 times, I was replying to to a 'more clarification' 
 question.
 3: They cannot change or submit again, our client just does not want them
 to 
 see the form when pressing the back button as on some sites you get a 
 'session expired' page by pressing back.
 4: I do not need basic research. I have built tons of Tapestry apps and
 this 
 still eludes me.
 5: If its so basic, why do you not just answer my problem.
 6: If you don't have anything constructive towards the post, please just
 do 
 not post...
 
 Thanks,
 --James
 
 - Original Message - 
 From: zack1403 [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Sent: Monday, June 02, 2008 3:01 AM
 Subject: Re: T3: Stop back button
 
 

 Do you really think this is the right thread for that question? Also, I 
 doubt
 posting the same question twice will increase your chances of having it
 answered. In relation to your question, just make sure that the user cant
 access or makes changes to the survey if it has already been submitted .
 Don't take the back button away from users. If you need more help, I
 would
 start another topic (but really I would just do some basic research
 before
 posting again).

 Zack


 James Sherwood wrote:

 Hello,

 Our application submits a form then shows the results(like a survey 
 form).
 Problem is the users can hit the browser's back button and see the form
 again and we do not want that.  Any ideas how to make it show anything 
 but
 the form?

 --James

 - Original Message - 
 From: Javier Sanchez [EMAIL PROTECTED]
 To: Tapestry users users@tapestry.apache.org
 Sent: Friday, May 30, 2008 6:46 PM
 Subject: Re: T3: Stop back button


 Isn't obvious?  What exactly do you want your application to do?

 On Fri, May 30, 2008 at 1:46 PM, James Sherwood
 [EMAIL PROTECTED]
 wrote:

 Hello all,

 We are using tapestry 3.  We need to make it so when a user submits a
 form
 and then presses the back button, it does not show them the form.

 Any ideas?

 --James



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





 __ Information from ESET Smart Security, version of virus
 signature database 3148 (20080530) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



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




 -- 
 View this message in context: 
 http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 __ Information from ESET Smart Security, version of virus 
 signature database 3150 (20080601) __

 The message was checked by ESET Smart Security.

 http://www.eset.com

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

-- 
View this message in context: 
http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17609175.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5-components MultipleSelect use

2008-06-01 Thread zack1403

That actually did help being able to look through the code (some links are
broken from the 87.193.218.134 site).  My issue that I was trying hard to
just have strings in the list.  It looks like a getter is required to pull a
value so once i created an object with one attribute (value) i was able to
get it working.  Is there a way I was missing to get it to work with just a
list of strings? Are their plans for a multiple select checkbox component
similar to this?

Thanks for the help,
Zack


Weisu wrote:
 
 Hi Zack, please look at the t5component demo site @
 http://87.193.218.134:8080/t5c-demo/multipleselectpage, the java source  @
 http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/java/org/apache/tapestry/demo/pages/MultipleSelectPage.java,
 the tml @
 http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/resources/org/apache/tapestry/demo/pages/MultipleSelectPage.tml
 
 zack1403 wrote:
 
 @
 http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/MultipleSelect.html
 the docs say its not required but I guess I need it.  Do you have a
 snippet similar to what you gave for selectModel?  Or further
 documentation on initiating an instance of a select model
 
 Thanks,
 Zack
 
 Weisu wrote:
 
 You need to define encoder in your tml file, this is my:
 tdselect t:type=t5components/MultipleSelect size=10
 encoder=selectModel 
 model=selectModel
 value=selectedDistricts/
 /td
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17588928.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5-components MultipleSelect use

2008-06-01 Thread zack1403

One last issue if i persist my list thats going into the value attribute
it all works fine until i refresh the page once.  At which point i get this:
object is not an instance of declaring class.  Any idea what that might be? 
Originates at
org.apache.tapestry.commons.models.GenericMultipleSelectModel.getOptions(GenericMultipleSelectModel.java:83)

Any thoughts?

Zack

zack1403 wrote:
 
 That actually did help being able to look through the code (some links are
 broken from the 87.193.218.134 site).  My issue that I was trying hard to
 just have strings in the list.  It looks like a getter is required to pull
 a value so once i created an object with one attribute (value) i was able
 to get it working.  Is there a way I was missing to get it to work with
 just a list of strings? Are their plans for a multiple select checkbox
 component similar to this?
 
 Thanks for the help,
 Zack
 
 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17594119.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry-5.0.12-SNAPSHOT

2008-05-31 Thread zack1403

Thanks for the T5 components tip on upgrade to 5.0.12.  I would have been
stuck on that for a while had I not found this post. Updated POM with
current t5-contrib/commons fixed the error

Zack

Tobias Wehrum wrote:
 
 Maybe an old T5C commons/contrib? That was it for me last two times I 
 had such a problem...
 
 Stephane Decleire schrieb:
 Your application use a library wich in turn use a version of Tapestry 
 previous to the 5.0.12

 Stephane

 Kheldar666 a écrit :
 Yes...


 Adam Zimowski wrote:
  
 Did you synced up tapestry-ioc with latest?

 On Mon, May 26, 2008 at 11:58 AM, Kheldar666 [EMAIL PROTECTED]
 wrote:

 Yes I saw that... but the problem don't come from that I think... I 
 never
 use

 org.apache.tapestry5.ioc.ObjectProvider

 That seems to appends at Registry Startup juste after Spring Web
 ApplicationContext initialisation.

 Martin


 dleffel wrote:
  
 Have you noted that in the 5.0.12-SNAPSHOT, the packages have been
 renamed
 to org.apache.tapestry*5*?

 On Mon, May 26, 2008 at 8:13 AM, Kheldar666 [EMAIL PROTECTED]
 wrote:


 Hello everybody,

 Since this morning, after updating my T5 Snapshot, I have this error
 when
 launching my application with Jetty plugin :

 17:08:33.678 INFO   [main]

 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:209)
  

  
 09 Root WebApplicationContext: initialization completed in 4401 ms
 
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/tapestry/ioc/ObjectProvider
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
 org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:146) 

at

 org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:120)
  

at

 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:104)
  

at

 org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:76)
  

at

 org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:75)
  

at
 org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:72)
at
 org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
at

 org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
  

at

 org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
  

at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at
 com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) 

at
 com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) 

at
 com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)

 Is this a bug that comes from the nightly build ?

 Martin
 -- 
 View this message in context:
 http://www.nabble.com/Tapestry-5.0.12-SNAPSHOT-tp17473797p17473797.html 

 Sent from the Tapestry - User mailing list archive at Nabble.com.


 - 

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


   
 
 -- 
 View this message in context:
 http://www.nabble.com/Tapestry-5.0.12-SNAPSHOT-Runtime-Error-tp17473797p17475450.html
  

 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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



 

   

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

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5.0.12-SNAPSHOT-Runtime-Error-tp17473797p17572862.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: How to call service during startup?

2008-05-31 Thread zack1403

I am relatively new to tapestry so this was a huge help not only running a
service on startup, but learning more about the Ioc container overall.

Thanks,
Zack

Lubor Gajda wrote:
 
 Hi,
 
 Just inject your service to the 'contributeRegistryStartup' method as
 final
 parameter and directly use in Runnable inner class. For instance:
 
 public static void
 contributeRegistryStartup(OrderedConfigurationRunnable
 configuration, final Scheduler scheduler) {
configuration.add(SchedulerStartup, new Runnable() {
public void run() {
scheduler.start()
}
});
 }
 
 Regards,
 Lubor
 
 
 On Fri, May 30, 2008 at 2:11 PM, 9902468 [EMAIL PROTECTED] wrote:
 

 Hi!

 My parameter service needs to connect to database, inspect that all
 parameters are inplace, and if there are missing (new) parameters I have
 to
 create them and assign default values. This should occur every time that
 the
 application is started.

 How do I do it? I read the IoC Registry startup, but I don't know how to
 inject services to the Runnable. I have following code that is working in
 my
 Tapestry Module:

 static Log log = LogFactory.getLog(EblanketterModule.class);

public static void
 contributeRegistryStartup(OrderedConfigurationRunnable configuration) {
configuration.add(InitializeDatabaseParams, new Runnable() {

public void run(){



log.info(At startup);
}

});
}
 --
 View this message in context:
 http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17558546.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17579555.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5-components MultipleSelect use

2008-05-30 Thread zack1403

@
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/MultipleSelect.html
the docs say its not required but I guess I need it.  Do you have a snippet
similar to what you gave for selectModel?  Or further documentation on
initiating an instance of a select model

Thanks,
Zack

Weisu wrote:
 
 You need to define encoder in your tml file, this is my:
 tdselect t:type=t5components/MultipleSelect size=10
   encoder=selectModel 
   model=selectModel
   value=selectedDistricts/
 /td
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17562419.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5-components MultipleSelect use

2008-05-29 Thread zack1403

Hmm, still getting the error:

Render queue error in
BeforeRenderTemplate[survey/contact/Upload:multipleselect]: Failure reading
parameter 'encoder' of component survey/contact/Upload:multipleselect: Could
not find a coercion from type
org.apache.tapestry.internal.services.StringValueEncoder to type
org.apache.tapestry.commons.encoder.MultipleValueEncoder.

I know encoder is specified in the error but it shouldnt be required right?

I am also just using a set of strings as the value.  What should I use for
labelField and idField?

Thanks for your help,
Zack

Weisu wrote:
 
 Hi Zack, I think you need to define your getSelectModel(), this is my
 getSelectModel method. Hope this helps.
  public GenericMultipleSelectModelEllipseDistrict getSelectModel()
 {
   _districtList = _editService.getDistricts();
   _selectModel = new
 GenericMultipleSelectModelEllipseDistrict(_districtList,
 EllipseDistrict.class, districtName, districtCode, _propertyAccess);
   return _selectModel;
 }
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17536453.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



t5-components MultipleSelect use

2008-05-28 Thread zack1403

Hey All,

Using tapestry-components, I'm trying to utilize the Mutiple Select
component but am getting: 'Could not find a coercion from type
org.apache.tapestry.internal.services.StringValueEncoder to type
org.apache.tapestry.commons.encoder.MultipleValueEncoder'.  Does anyone have
an example of how this component is used?

tml:

select t:type=t5components/MultipleSelect
model=selectModel
value=confirmedComps/

java:

private SetString confirmedComps;

private GenericMultipleSelectModelString selectModel;


I have getters and setters for these two attributes but I only set
confirmedComps.  Should selectModel be null?

Thanks,
Zack
-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17524086.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-23 Thread zack1403

Hey guys thanks a lot for you help so far.  Josh, I have tried adding
@Persist(flash) to many different parts with no apparent luck.  Filip, is
there a way I can utilize my list of messages from my template component
when the list is an attribute of the page?  I obviously get the Could not
convert 'messages' into a component parameter binding because the message
display is part of the component tml.  I could see moving my messages into
my generic page but I get that error. How do you see that working without
having a list attribute in my component?

Thanks again,
Zack

Filip S. Adamsen-2 wrote:
 
 No luck? That sucks. =/
 
 I thought occured to me just before I fell asleep last night, though. 
 Perhaps you should store the messages directly in your pages instead and 
 pass them on to your layout? That's how I would do it, anyhow.
 
 You could wrap the add functions in a MessageHolder class that you can 
 easily pass to your layout. Maybe that will work...
 
 -Filip
 
 zack1403 skrev:
 Yea I've tried multiple different combinations of @Persist to get
 something
 to work on my pages and  component with no luck.  Thanks anyways for your
 help Filip.
 
 Zack
 
 Filip S. Adamsen-2 wrote:
 You say you added @Persist(flash) to your pages, but the information 
 you're storing doesn't go into the page, but into the component. I think 
 you'll have to put @Persist(flash) on your list of messages in your 
 Layout component.

 If that doesn't solve it, I'm afraid I don't know what the problem is. 
 Hopefully someone else will be able to help you, then.

 -Filip

 On 2008-05-23 01:20, zack1403 wrote:
 Filip,

 One of the first things I added was @Persist(flash) to my pages with
 no
 luck.  Still the same behavior.  Even with the pages pooled should they
 share attribute values across sessions?


 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that you
 have 
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else besides
 a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get
 persisted
 without any sort of persist.


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



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

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17427911.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-23 Thread zack1403

Isnt that basically the same as having the attribute as part of the Layout
class?  It just seems unnecessary to have to pass my message list to the
layout when it belongs in the layout component anyways.  Is this a
workaround to some issue?

Thanks,
Zack

Filip S. Adamsen-2 wrote:
 
 Hi again,
 
 You just need to pass it from your page to your layout.
 
 Page class:
@Property
private MessageHolder messages;
 
 Page template:
t:layout t:messages=messages.../t:layout
 
 Layout class:
@Property
@Parameter
private MessageHolder messages;
 
 Layout template:
t:loop t:source=messages t:value=message.../t:loop
 
 Etc. etc.
 
 -Filip
 
 On 2008-05-23 17:20, zack1403 wrote:
 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck.  Filip,
 is
 there a way I can utilize my list of messages from my template component
 when the list is an attribute of the page?  I obviously get the Could not
 convert 'messages' into a component parameter binding because the message
 display is part of the component tml.  I could see moving my messages
 into
 my generic page but I get that error. How do you see that working without
 having a list attribute in my component?
 
 Thanks again,
 Zack
 
 Filip S. Adamsen-2 wrote:
 No luck? That sucks. =/

 I thought occured to me just before I fell asleep last night, though. 
 Perhaps you should store the messages directly in your pages instead and 
 pass them on to your layout? That's how I would do it, anyhow.

 You could wrap the add functions in a MessageHolder class that you can 
 easily pass to your layout. Maybe that will work...

 -Filip

 zack1403 skrev:
 Yea I've tried multiple different combinations of @Persist to get
 something
 to work on my pages and  component with no luck.  Thanks anyways for
 your
 help Filip.

 Zack

 Filip S. Adamsen-2 wrote:
 You say you added @Persist(flash) to your pages, but the information 
 you're storing doesn't go into the page, but into the component. I
 think 
 you'll have to put @Persist(flash) on your list of messages in your 
 Layout component.

 If that doesn't solve it, I'm afraid I don't know what the problem is. 
 Hopefully someone else will be able to help you, then.

 -Filip

 On 2008-05-23 01:20, zack1403 wrote:
 Filip,

 One of the first things I added was @Persist(flash) to my pages
 with
 no
 luck.  Still the same behavior.  Even with the pages pooled should
 they
 share attribute values across sessions?


 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that you
 have 
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else
 besides
 a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get
 persisted
 without any sort of persist.


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



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



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

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17441131.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-23 Thread zack1403

Josh, Filip, Thiago thanks again for your help.  An ASO is probably the best
option, good suggestion Thiago.  Josh I think at one point I had tried
removing the initialization of the list which seemed to have the same effect
but I think I'm putting more work into this than I need to. I am coming from
Stripes in which you have a built in message list you use so I just
defaulted to that. ASO works great now!.  Thanks again for everyones help!

Zack

Filip S. Adamsen-2 wrote:
 
 I think I just misunderstood your question.
 
 By now I really think you should consider doing as Thiago suggested and 
 move the whole thing into an Application State Object. It'll take a bit 
 of work - you'll have to keep track of which messages to display on 
 which pages etc. - but it will probably be a cleaner, better solution in 
 the end.
 
 -Filip
 
 On 2008-05-23 23:13, zack1403 wrote:
 Isnt that basically the same as having the attribute as part of the
 Layout
 class?  It just seems unnecessary to have to pass my message list to the
 layout when it belongs in the layout component anyways.  Is this a
 workaround to some issue?
 
 Thanks,
 Zack
 
 Filip S. Adamsen-2 wrote:
 Hi again,

 You just need to pass it from your page to your layout.

 Page class:
@Property
private MessageHolder messages;

 Page template:
t:layout t:messages=messages.../t:layout

 Layout class:
@Property
@Parameter
private MessageHolder messages;

 Layout template:
t:loop t:source=messages t:value=message.../t:loop

 Etc. etc.

 -Filip

 On 2008-05-23 17:20, zack1403 wrote:
 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck. 
 Filip,
 is
 there a way I can utilize my list of messages from my template
 component
 when the list is an attribute of the page?  I obviously get the Could
 not
 convert 'messages' into a component parameter binding because the
 message
 display is part of the component tml.  I could see moving my messages
 into
 my generic page but I get that error. How do you see that working
 without
 having a list attribute in my component?

 Thanks again,
 Zack

 Filip S. Adamsen-2 wrote:
 No luck? That sucks. =/

 I thought occured to me just before I fell asleep last night, though. 
 Perhaps you should store the messages directly in your pages instead
 and 
 pass them on to your layout? That's how I would do it, anyhow.

 You could wrap the add functions in a MessageHolder class that you can 
 easily pass to your layout. Maybe that will work...

 -Filip

 zack1403 skrev:
 Yea I've tried multiple different combinations of @Persist to get
 something
 to work on my pages and  component with no luck.  Thanks anyways for
 your
 help Filip.

 Zack

 Filip S. Adamsen-2 wrote:
 You say you added @Persist(flash) to your pages, but the
 information 
 you're storing doesn't go into the page, but into the component. I
 think 
 you'll have to put @Persist(flash) on your list of messages in
 your 
 Layout component.

 If that doesn't solve it, I'm afraid I don't know what the problem
 is. 
 Hopefully someone else will be able to help you, then.

 -Filip

 On 2008-05-23 01:20, zack1403 wrote:
 Filip,

 One of the first things I added was @Persist(flash) to my pages
 with
 no
 luck.  Still the same behavior.  Even with the pages pooled should
 they
 share attribute values across sessions?


 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that
 you
 have 
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else
 besides
 a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get
 persisted
 without any sort of persist.


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



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



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



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

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17441345.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-23 Thread zack1403

I posed the previous message before you posted yours.  I'll give this another
try before moving to an ASO! Thank you Josh.


joshcanfield wrote:
 
 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck.
 
 Your original problem was that you are initializing the list when you
 declare it. Did you fix that? I provided a link to updated code before
 which had a compile error, I've stuck this into a test project and it
 works fine, here are the files (the packages are different, and I
 changed Layout2 to Layout before I decided to upload the other
 files...)
 
 Layout.java: http://pastebin.com/m3ae085a2
 Index.java: http://pastebin.com/m116c1dd1
 Index.tml: http://pastebin.com/m4e494928
 News.java: http://pastebin.com/m265a4f
 News.tml: http://pastebin.com/mc71972f
 
 Josh
 
 On Fri, May 23, 2008 at 8:20 AM, zack1403 [EMAIL PROTECTED] wrote:

 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck.  Filip,
 is
 there a way I can utilize my list of messages from my template component
 when the list is an attribute of the page?  I obviously get the Could not
 convert 'messages' into a component parameter binding because the message
 display is part of the component tml.  I could see moving my messages
 into
 my generic page but I get that error. How do you see that working without
 having a list attribute in my component?

 Thanks again,
 Zack

 Filip S. Adamsen-2 wrote:

 No luck? That sucks. =/

 I thought occured to me just before I fell asleep last night, though.
 Perhaps you should store the messages directly in your pages instead and
 pass them on to your layout? That's how I would do it, anyhow.

 You could wrap the add functions in a MessageHolder class that you can
 easily pass to your layout. Maybe that will work...

 -Filip

 zack1403 skrev:
 Yea I've tried multiple different combinations of @Persist to get
 something
 to work on my pages and  component with no luck.  Thanks anyways for
 your
 help Filip.

 Zack

 Filip S. Adamsen-2 wrote:
 You say you added @Persist(flash) to your pages, but the information
 you're storing doesn't go into the page, but into the component. I
 think
 you'll have to put @Persist(flash) on your list of messages in your
 Layout component.

 If that doesn't solve it, I'm afraid I don't know what the problem is.
 Hopefully someone else will be able to help you, then.

 -Filip

 On 2008-05-23 01:20, zack1403 wrote:
 Filip,

 One of the first things I added was @Persist(flash) to my pages
 with
 no
 luck.  Still the same behavior.  Even with the pages pooled should
 they
 share attribute values across sessions?


 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that you
 have
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else
 besides
 a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get
 persisted
 without any sort of persist.


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





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




 --
 View this message in context:
 http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17427911.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17441477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-23 Thread zack1403

Josh you rock man.  We talked about the initialization problem on #tapestry
but I just stuck initialization in the onActivate method instead of handling
it per method like your example (instantiating the list in onActivate doesnt
work).  I would have never suspected that to be the problem. This issue
might be something worth mentioning somewhere in the documentation because
its definitely a security issue.  Every time I post a question to this list
I no only  get my question answered but I learn heaps more about tapestry. 
I'm sure ASO would have worked just fine but fixing this saved me some time.
Thanks everyone! 

Zack

joshcanfield wrote:
 
 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck.
 
 Your original problem was that you are initializing the list when you
 declare it. Did you fix that? I provided a link to updated code before
 which had a compile error, I've stuck this into a test project and it
 works fine, here are the files (the packages are different, and I
 changed Layout2 to Layout before I decided to upload the other
 files...)
 
 Layout.java: http://pastebin.com/m3ae085a2
 Index.java: http://pastebin.com/m116c1dd1
 Index.tml: http://pastebin.com/m4e494928
 News.java: http://pastebin.com/m265a4f
 News.tml: http://pastebin.com/mc71972f
 
 Josh
 
 On Fri, May 23, 2008 at 8:20 AM, zack1403 [EMAIL PROTECTED] wrote:

 Hey guys thanks a lot for you help so far.  Josh, I have tried adding
 @Persist(flash) to many different parts with no apparent luck.  Filip,
 is
 there a way I can utilize my list of messages from my template component
 when the list is an attribute of the page?  I obviously get the Could not
 convert 'messages' into a component parameter binding because the message
 display is part of the component tml.  I could see moving my messages
 into
 my generic page but I get that error. How do you see that working without
 having a list attribute in my component?

 Thanks again,
 Zack

 Filip S. Adamsen-2 wrote:

 No luck? That sucks. =/

 I thought occured to me just before I fell asleep last night, though.
 Perhaps you should store the messages directly in your pages instead and
 pass them on to your layout? That's how I would do it, anyhow.

 You could wrap the add functions in a MessageHolder class that you can
 easily pass to your layout. Maybe that will work...

 -Filip

 zack1403 skrev:
 Yea I've tried multiple different combinations of @Persist to get
 something
 to work on my pages and  component with no luck.  Thanks anyways for
 your
 help Filip.

 Zack

 Filip S. Adamsen-2 wrote:
 You say you added @Persist(flash) to your pages, but the information
 you're storing doesn't go into the page, but into the component. I
 think
 you'll have to put @Persist(flash) on your list of messages in your
 Layout component.

 If that doesn't solve it, I'm afraid I don't know what the problem is.
 Hopefully someone else will be able to help you, then.

 -Filip

 On 2008-05-23 01:20, zack1403 wrote:
 Filip,

 One of the first things I added was @Persist(flash) to my pages
 with
 no
 luck.  Still the same behavior.  Even with the pages pooled should
 they
 share attribute values across sessions?


 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that you
 have
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else
 besides
 a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get
 persisted
 without any sort of persist.


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





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




 --
 View this message in context:
 http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17427911.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17441773.html
Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Layout Attributes Shared

2008-05-23 Thread zack1403

Yea I meant I would set it onActivate of every page (which was a mess). 
Thanks again for your help.

Zack 


joshcanfield wrote:
 
 
 Yeah, onActivate doesn't get called for your components, it's a
 page-level event.
 
 

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17442484.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Layout Attributes Shared

2008-05-22 Thread zack1403

Hello all,

I have a layout component with a List full of my own message objects as an
attribute.  First off, it seems that these values are shared across
sessions/computers. Second, they persist until i either restart my server or
end the session.  Any ideas why an attribute of the layout class would be
acting like this?  Ideally I just want them to flash and then go away but
cant seem to get this to work.

Thanks in advance,
Zack
-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17414894.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-22 Thread zack1403

No.  Not using any persist.  I really dont have anything else besides a title
and this list of messages.  When I move from page to page I might inject my
layout and add a message to this list for display.  They get persisted
without any sort of persist.


Daniel Jue wrote:
 
 I take it you are not using @Persist(flash) ?
 
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html
 
 
 On Thu, May 22, 2008 at 6:33 PM, zack1403 [EMAIL PROTECTED] wrote:

 Hello all,

 I have a layout component with a List full of my own message objects as
 an
 attribute.  First off, it seems that these values are shared across
 sessions/computers. Second, they persist until i either restart my server
 or
 end the session.  Any ideas why an attribute of the layout class would be
 acting like this?  Ideally I just want them to flash and then go away but
 cant seem to get this to work.

 Thanks in advance,
 Zack
 --
 View this message in context:
 http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17414894.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17415068.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-22 Thread zack1403

Filip,

One of the first things I added was @Persist(flash) to my pages with no
luck.  Still the same behavior.  Even with the pages pooled should they
share attribute values across sessions?


Filip S. Adamsen-2 wrote:
 
 Working as intended. Tapestry uses a page pool which means that you have 
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html
 
 -Filip
 
 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else besides a
 title
 and this list of messages.  When I move from page to page I might inject
 my
 layout and add a message to this list for display.  They get persisted
 without any sort of persist.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17415597.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Layout Attributes Shared

2008-05-22 Thread zack1403

Yea I've tried multiple different combinations of @Persist to get something
to work on my pages and  component with no luck.  Thanks anyways for your
help Filip.

Zack

Filip S. Adamsen-2 wrote:
 
 You say you added @Persist(flash) to your pages, but the information 
 you're storing doesn't go into the page, but into the component. I think 
 you'll have to put @Persist(flash) on your list of messages in your 
 Layout component.
 
 If that doesn't solve it, I'm afraid I don't know what the problem is. 
 Hopefully someone else will be able to help you, then.
 
 -Filip
 
 On 2008-05-23 01:20, zack1403 wrote:
 Filip,
 
 One of the first things I added was @Persist(flash) to my pages with no
 luck.  Still the same behavior.  Even with the pages pooled should they
 share attribute values across sessions?
 
 
 Filip S. Adamsen-2 wrote:
 Working as intended. Tapestry uses a page pool which means that you have 
 to use some sort of persistence to make this work:
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

 -Filip

 On 2008-05-23 00:45, zack1403 wrote:
 No.  Not using any persist.  I really dont have anything else besides a
 title
 and this list of messages.  When I move from page to page I might
 inject
 my
 layout and add a message to this list for display.  They get persisted
 without any sort of persist.



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

-- 
View this message in context: 
http://www.nabble.com/Layout-Attributes-Shared-tp17414894p17415956.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Using t5-components

2008-05-19 Thread zack1403

Toby,

You should just be able to add the following to your pom.xml in the
appropriate places:

repository
idt5components/id
nameT5Components Maven Repository/name
url

http://87.193.218.134:8080/t5components/maven-repository
/url
/repository


dependency
groupIdorg.apache.tapestry/groupId
artifactIdt5c-contrib/artifactId
version0.5.11/version
/dependency

dependency
groupIdorg.apache.tapestry/groupId
artifactIdt5c-commons/artifactId
version0.5.11/version
/dependency

Zack

Sven Homburg wrote:
 
 looks like the jars not copied in your WEB-INF/lib directory
 
 2008/5/17 Toby Hobson [EMAIL PROTECTED]:
 
 Hi

 I'm looking at the t5-components project and I am trying to use the
 PagedLoop component. I've added the commons and contrib dependencies and
 the
 repo to my pom.xml and they are now on my classpath. But when I try to
 use

li t:type=t5components/PagedLoop source=images value=photo
${photo.name}
/li

 Tapestry complains that it can't find a component called
 t5components/PagedLoop. Do I have to somehow tell T5 where to find the
 new
 components?

 Thanks

 Toby


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

-- 
View this message in context: 
http://www.nabble.com/Using-t5-components-tp17292957p17328675.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: TransformationException/ClassNotFoundException

2008-05-12 Thread zack1403

Peter,

Thanks for the suggestions!  The error came back after I continued building
that page and one of your methods did work.  I tried upgrading javassist but
that didnt relieve the error and I am using jetty through eclipse with no
try/catch blocks.  Finally I removed the block of my code that seemed to be
erroring out into a private method and everything works fine.  Obviously not
ideal but it will work until t5(or javassist) is a bit more stable in this
area.  Thanks!

Zack


Peter Stavrinides wrote:
 
 When using Java 6 with Javassist you will come across these problems
 eventually, we have been using it for nearly a year and the good news is
 that it can work reliably. We had to suffer somewhat until we found some
 workarounds though, so anyone with this setup please take note of the
 following:
 
 - Get the newest version of Javassist, it is a lot better... you can
 override any Tapestry default library by simply including the dependency
 explicitly in your POM.
 - Avoid using try catch if possible in Tapestry render phase methods, this
 is one of the main culprits, if you can use Throws xyzException instead
 then use it... also using onException in your page classes can help
 mitigate this by handling some of these error conditions.
 - Granted it is not always possible to avoid a try catch in those methods,
 but often by extracting that portion of your code into a private method
 you can also avoid the transformation errors.
 - For publishing a war before deploying:  If you use eclipse, prefer it
 for compilation, rather than maven/ant command line tools... the command
 line compiler is old and often breaks with Javassist and JDK 1.6...
 eclipse is smarter though and wont.  
 
 Hope this info helps someone, we are now running in production using
 Tapestry 5 and JDK 6, and all is well.
 
 Best wishes
 Peter
 
 - Original Message -
 From: zack1403 [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Sent: Saturday, 10 May, 2008 6:12:16 AM GMT +02:00 Athens, Beirut,
 Bucharest, Istanbul
 Subject: Re: TransformationException/ClassNotFoundException
 
 
 Actually I found an unlikely workaround (for my case at least).  All I did
 was move the entire ContactUpload property to the top of the class.  For
 whatever reason the error went away.  I am really not familiar with
 Javassist but at least there is a workaround to this.  Of course I am open
 to any solution that would prevent this in the future.
 
 Zack
 
 
 Filip S. Adamsen-2 wrote:
 
 For what it's worth I saw the same errors earlier while using the 
 @Cached annotation. Removing the annotation made the errors go away. 
 Following the advice in the linked mail, on the other hand, doesn't help.
 
 But it doesn't happen all the time - I use @Cached lots, and it was only 
 two specific instances that didn't work. But then again both of those 
 were inside loops, which is a problem according to the mail.
 
 So, would the solution be a downgrade of Javassist, if that's even
 possible?
 
 -Filip
 
 On 2008-05-09 23:28, Josh Canfield wrote:
 This is what I found about it from googling...
 http://article.gmane.org/gmane.comp.java.tapestry.user/59171
 
 I don't have personal experience with the problem, just remembered it
 being mentioned.
 
 On Fri, May 9, 2008 at 2:11 PM, zack1403 [EMAIL PROTECTED] wrote:
 I am running java 1.6.0_03 on Ubuntu 7.  5.0.11 is my tapestry version.

 Hmm that would make sense then.  Do you know of a workaround?

 Thanks for the quick reply,
 Zack


 joshcanfield wrote:
 Are you running with Java6? I believe at one point there was a defect
 in a version of javaassist that would cause the
 ArrayIndexOutOfBoundsException you are seeing. What version of
 Tapestry are you running?

 Josh


 On Fri, May 9, 2008 at 1:50 PM, zack1403 [EMAIL PROTECTED]
 wrote:
 Hi All,

 Im getting a very wierd error that isnt very descriptive.  When just
 loading
 this page: http://pastebin.com/m141bdd4d, I get this error:
 http://pastebin.com/m5f42dd31.

 If I refresh the error page I get a new error:
 http://pastebin.com/m1859133b

 Removing the ContactUpload property seems to make it work but so does
 commenting out line 33.  The error just doesnt seem to make sense to
 me.
 Any ideas?

 Thanks,
 Zack
 --
 View this message in context:
 http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17156180.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




 --
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.

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



 --
 View this message in context:
 http://www.nabble.com/TransformationException-ClassNotFoundException

Re: TransformationException/ClassNotFoundException

2008-05-09 Thread zack1403

I am running java 1.6.0_03 on Ubuntu 7.  5.0.11 is my tapestry version.

Hmm that would make sense then.  Do you know of a workaround?

Thanks for the quick reply,
Zack


joshcanfield wrote:
 
 Are you running with Java6? I believe at one point there was a defect
 in a version of javaassist that would cause the
 ArrayIndexOutOfBoundsException you are seeing. What version of
 Tapestry are you running?
 
 Josh
 
 
 On Fri, May 9, 2008 at 1:50 PM, zack1403 [EMAIL PROTECTED] wrote:

 Hi All,

 Im getting a very wierd error that isnt very descriptive.  When just
 loading
 this page: http://pastebin.com/m141bdd4d, I get this error:
 http://pastebin.com/m5f42dd31.

 If I refresh the error page I get a new error:
 http://pastebin.com/m1859133b

 Removing the ContactUpload property seems to make it work but so does
 commenting out line 33.  The error just doesnt seem to make sense to me.
 Any ideas?

 Thanks,
 Zack
 --
 View this message in context:
 http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17156180.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17156492.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: TransformationException/ClassNotFoundException

2008-05-09 Thread zack1403

Actually I found an unlikely workaround (for my case at least).  All I did
was move the entire ContactUpload property to the top of the class.  For
whatever reason the error went away.  I am really not familiar with
Javassist but at least there is a workaround to this.  Of course I am open
to any solution that would prevent this in the future.

Zack


Filip S. Adamsen-2 wrote:
 
 For what it's worth I saw the same errors earlier while using the 
 @Cached annotation. Removing the annotation made the errors go away. 
 Following the advice in the linked mail, on the other hand, doesn't help.
 
 But it doesn't happen all the time - I use @Cached lots, and it was only 
 two specific instances that didn't work. But then again both of those 
 were inside loops, which is a problem according to the mail.
 
 So, would the solution be a downgrade of Javassist, if that's even
 possible?
 
 -Filip
 
 On 2008-05-09 23:28, Josh Canfield wrote:
 This is what I found about it from googling...
 http://article.gmane.org/gmane.comp.java.tapestry.user/59171
 
 I don't have personal experience with the problem, just remembered it
 being mentioned.
 
 On Fri, May 9, 2008 at 2:11 PM, zack1403 [EMAIL PROTECTED] wrote:
 I am running java 1.6.0_03 on Ubuntu 7.  5.0.11 is my tapestry version.

 Hmm that would make sense then.  Do you know of a workaround?

 Thanks for the quick reply,
 Zack


 joshcanfield wrote:
 Are you running with Java6? I believe at one point there was a defect
 in a version of javaassist that would cause the
 ArrayIndexOutOfBoundsException you are seeing. What version of
 Tapestry are you running?

 Josh


 On Fri, May 9, 2008 at 1:50 PM, zack1403 [EMAIL PROTECTED]
 wrote:
 Hi All,

 Im getting a very wierd error that isnt very descriptive.  When just
 loading
 this page: http://pastebin.com/m141bdd4d, I get this error:
 http://pastebin.com/m5f42dd31.

 If I refresh the error page I get a new error:
 http://pastebin.com/m1859133b

 Removing the ContactUpload property seems to make it work but so does
 commenting out line 33.  The error just doesnt seem to make sense to
 me.
 Any ideas?

 Thanks,
 Zack
 --
 View this message in context:
 http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17156180.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




 --
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.

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



 --
 View this message in context:
 http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17156492.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/TransformationException-ClassNotFoundException-tp17156180p17159528.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



onValidate NPE

2008-05-02 Thread zack1403

hey all, i am trying to use the onValidate method to verify an uploaded file
but am getting an npe on the UploadedFile.  

Even just trying to record error on form period does nothing as well.  Am I
using the onValidate/recordError incorrectly?  

@Component
private Form form;
private UploadedFile up;

public void onValidate() {
// form.recordError(an error);
if(!web.getFileName().endsWith(.ssi)) {
   form.recordError(wrong ext error);
}

}
-- 
View this message in context: 
http://www.nabble.com/onValidate-NPE-tp17024869p17024869.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: onValidate NPE

2008-05-02 Thread zack1403



Your example is very incomplete and thus hard to debug. What version
of tapestry are you using?

I'm guessing that the web in your method is supposed to be up? Do
you have proper getter/setter methods for your uploadfile?

Josh

On Fri, May 2, 2008 at 11:05 AM, zack1403 [EMAIL PROTECTED] wrote:

 hey all, i am trying to use the onValidate method to verify an uploaded
 file
 but am getting an npe on the UploadedFile.

 Even just trying to record error on form period does nothing as well.  Am
 I
 using the onValidate/recordError incorrectly?

 @Component
 private Form form;
 private UploadedFile up;

Sorry about that.  My form works fine outside of any validation so I assumed
getters/setters were given.  Yes, web==up :/.  No getters/setters for form
though (I have tried that though).  The files can be saved and modified in
the onSuccess method just fine.  I no other components in the page.
  
My tml basically consists of: 

form t:type=form t:id=form
div class=t-beaneditor-row
label t:type=label for=up /
input t:type=upload t:id=up 
validate=required/
/div

div class=t-beaneditor-row
input t:type=submit value=Add /
/div
/form

By the way, thank you for the quick response!
-- 
View this message in context: 
http://www.nabble.com/onValidate-NPE-tp17024869p17025322.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: onValidate NPE

2008-05-02 Thread zack1403

Actually client-side validation works for me with files.  I am testing if the
file is of a certain extension so I always make sure I am uploading files. 
I guess Ill pull down the source and debug it.

Thanks for the help.

Zack


Hmm... are you testing not uploading a file? because if there is no
file uploaded then the UploadFile object will be null. You should make
sure you handle that case because I don't believe the javascript
validation will work on a file upload field.

You might want to grab the source for the upload component and step
through the processSubmission method.

Josh

On Fri, May 2, 2008 at 11:32 AM, zack1403 [EMAIL PROTECTED] wrote:



 Your example is very incomplete and thus hard to debug. What version
 of tapestry are you using?

 I'm guessing that the web in your method is supposed to be up? Do
 you have proper getter/setter methods for your uploadfile?

 Josh

-- 
View this message in context: 
http://www.nabble.com/onValidate-NPE-tp17024869p17027833.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Tapestry Start

2008-04-21 Thread zack1403

I have a very basic project with a few pages just doing basic crud stuff.  My
Tomcat6 (SDK 1.6) server is running just this one tapestry project with
nothing running of my own during startup.  I get this stack trace after 10
seconds starting up.  I should not that this project was working like a
charm until i renamed some pages subpackages and classes.  I renamed them to
utilize the feature that strips the package name (pages.project.ProjectIndex
becomes the root page of project).  Stack trace:

java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:2882)
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at 
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
at java.lang.StringBuilder.append(StringBuilder.java:203)
at sun.net.www.ParseUtil.decode(ParseUtil.java:193)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:63)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1009)
at
org.apache.tapestry.internal.services.ClassNameLocatorImpl.scanDirStream(ClassNameLocatorImpl.java:166)
at
org.apache.tapestry.internal.services.ClassNameLocatorImpl.scanURL(ClassNameLocatorImpl.java:114)
at
org.apache.tapestry.internal.services.ClassNameLocatorImpl.findClassesWithinPath(ClassNameLocatorImpl.java:79)
at
org.apache.tapestry.internal.services.ClassNameLocatorImpl.locateClassNames(ClassNameLocatorImpl.java:60)
at
$ClassNameLocator_119729cca92.locateClassNames($ClassNameLocator_119729cca92.java)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:282)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:271)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.performRebuild(ComponentClassResolverImpl.java:192)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.access$100(ComponentClassResolverImpl.java:33)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl$2.run(ComponentClassResolverImpl.java:174)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:178)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:176)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:132)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:184)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:170)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:469)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.access$300(ComponentClassResolverImpl.java:33)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:403)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:401)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.isPageName(ComponentClassResolverImpl.java:399)
at
$ComponentClassResolver_119729cca8f.isPageName($ComponentClassResolver_119729cca8f.java)
at
org.apache.tapestry.services.TapestryModule$32.initializeApplication(TapestryModule.java:1901)
21-Apr-2008 1:11:46 PM org.apache.catalina.core.StandardContext start


Any ideas would be hugely helpful.  Thanks!
-- 
View this message in context: 
http://www.nabble.com/Tapestry-Start-tp16811434p16811434.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry Start

2008-04-21 Thread zack1403

Using T5 Components.  I was able to get rid of the error when I renamed my
classes back to what they were.  I.e: pages.project.ProjectAdd went back to
pages.project.Add etc.  I know the feature is pretty new, maybe a bug?

Zack 



Hi Zack.

By chance are you using any 3rd party component libs?

chris

-- 
View this message in context: 
http://www.nabble.com/Tapestry-Start-tp16811434p16819613.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry Start

2008-04-21 Thread zack1403

When I renamed my classes the package length didn't throw an oom error.  Is
working right now with the same package depth as when it was throwing an
error.  Right now I am using:
 -vmargs -Xmx1g -XX:PermSize=256M -XX:MaxPermSize=512M

Zack


Sven Homburg wrote:
 
 your package depth is too deep
 every package URL (not only the classes and files ) are stored by tapestry
 in an internal queue
 if there are too many packages, java throws an oom excpetion.
 
 try to start your servlet container with more heap memory (eg. -Xms512m)
 
 2008/4/21, Chris Lewis [EMAIL PROTECTED]:

 Hi Zack.

 By chance are you using any 3rd party component libs?

 chris


 zack1403 wrote:
  I have a very basic project with a few pages just doing basic crud
 stuff.  My
  Tomcat6 (SDK 1.6) server is running just this one tapestry project with
  nothing running of my own during startup.  I get this stack trace after
 10
  seconds starting up.  I should not that this project was working like a
  charm until i renamed some pages subpackages and classes.  I renamed
 them to
  utilize the feature that strips the package name
 (pages.project.ProjectIndex
  becomes the root page of project).  Stack trace:
 
  java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:2882)
at
 
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
at java.lang.StringBuilder.append(StringBuilder.java:203)
at sun.net.www.ParseUtil.decode(ParseUtil.java:193)
at
 sun.net.www.protocol.file.Handler.openConnection(Handler.java:63)
at
 sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1009)
at
 
 org.apache.tapestry.internal.services.ClassNameLocatorImpl.scanDirStream(ClassNameLocatorImpl.java:166)
at
 
 org.apache.tapestry.internal.services.ClassNameLocatorImpl.scanURL(ClassNameLocatorImpl.java:114)
at
 
 org.apache.tapestry.internal.services.ClassNameLocatorImpl.findClassesWithinPath(ClassNameLocatorImpl.java:79)
at
 
 org.apache.tapestry.internal.services.ClassNameLocatorImpl.locateClassNames(ClassNameLocatorImpl.java:60)
at
 
 $ClassNameLocator_119729cca92.locateClassNames($ClassNameLocator_119729cca92.java)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:282)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:271)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.performRebuild(ComponentClassResolverImpl.java:192)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.access$100(ComponentClassResolverImpl.java:33)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl$2.run(ComponentClassResolverImpl.java:174)
at
 
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:178)
at
 
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:176)
at
 
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:132)
at
 
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:184)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:170)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:469)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.access$300(ComponentClassResolverImpl.java:33)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:403)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:401)
at
 
 org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
at
 
 org.apache.tapestry.internal.services.ComponentClassResolverImpl.isPageName(ComponentClassResolverImpl.java:399)
at
 
 $ComponentClassResolver_119729cca8f.isPageName($ComponentClassResolver_119729cca8f.java)
at
 
 org.apache.tapestry.services.TapestryModule$32.initializeApplication(TapestryModule.java:1901)
  21-Apr-2008 1:11:46 PM org.apache.catalina.core.StandardContext start
 
 
  Any ideas would be hugely helpful.  Thanks!
 

 --

 http://thegodcode.net



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


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

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-21 Thread zack1403

Why doesnt tapestry attach events to the DOM instead of using onClick?

Zack


Chris Lewis-5 wrote:
 
 Hi Lucca,
 
 I'd been looking for a good example to use to write a wiki explaining
 the integration javascript by Tapestry, and your request gave me what I
 was looking for. Check out the article here:
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained (project
 source: http://thegodcode.net/tapestry5/jsclarity-project.zip). Apart
 from discussing in detail how T5 integrates JS, it shows how to create a
 mixin that can be added to link components. The mixin attaches js code
 to the component, so that when the link is clicked the user is presented
 with a confirmation box. Canceling the box cancels the click, while OK
 allows it to proceed as normal. This should be useful for those looking
 to add click confirmation functionality, but in your case I'm not sure
 if it will help. I ask you to try and see, but the problem will be how
 T5 attaches the js handlers for the ajax code (that is, they may fire
 before the confirmation code).
 
 Anyway, I think it will be helpful to those looking for such an
 explanation, and I hope it helps you.
 
 chris
 
 Luca Fossato wrote:
 Hi all,

 I'm playing with actionlink and zones to understand T5 ajax functions
 (Tapestry 5.0.11).
 I'd like to define an actionlink like this one:

 t:actionlink t:id=deleteLink context=myContext
 t:zone=zoneToUpdate onclick=confirm('are you sure to delete this
 record ?');delete/t:actionlink

 where the onclick handler uses a javascript confirmation dialog to ask
 to the user if he/she wants to delete the selected record.
 It seems to me the Tapestry.linkZone js function eats the user
 onclick handler and set its own - so it is not possible to execute any
 js code prior to invoke the ajax call.

 Is it correct or am I missing something ?

 I tried to fix this behaviour, modifying a bit the Tapestry.linkZone
 function (just an experiment):

 --- cut here ---

 /** Convert a form or link into a trigger of an Ajax update that
  * updates the indicated Zone.
  */
 linkZone : function(element, zoneDiv)
 {
   // ... original code until Otherwise, assume it's just an ordinary
 link. comment...

   // Otherwise, assume it's just an ordinary link.
   var onClickValue = element.getAttribute(onclick);
   if (onClickValue != null)
   {
 element.setAttribute(tapestry5_onbeforeajax,  onClickValue);
   }

   var handler = function(event)
   {
   var onBeforeAjaxRes = true;
   var onBeforeAjaxValue =
 element.getAttribute(tapestry5_onbeforeajax);
   if (onBeforeAjaxValue != null)
   {
 onBeforeAjaxRes = eval(onBeforeAjaxValue);
   }

   // execute the Ajax request only if the original onclick
 attribute was not set or if the evaluation
   // of the related function returned true;
   if (onBeforeAjaxRes === undefined || onBeforeAjaxRes)
 new Ajax.Request(element.href, { onSuccess : successHandler });

   return false;
   };

   element.onclick = handler;
 },  // end of linkZone function

 --- cut here ---

 that is a 10 minutes fix, so probably it's not the best solution.
 Anyway it seems to work fine for my experiment ;^)
 To block the execution of the ajax call, do NOT use a return statement
 inside the onclick handler. Example:

 t:actionlink t:id=deleteLink t:zone=zoneToUpdate onclick=return
 myFunction(myParam);delete/t:actionlink

 use this instead:

 t:actionlink t:id=deleteLink t:zone=zoneToUpdate
 onclick=myFunction(myParam);delete/t:actionlink

 because eval() returns the value of the last expression evaluated.
 http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Functions:eval

 Does this stuff make sense for you ?? ;^)

 Thank you,
 Luca Fossato

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


   
 
 -- 
 http://thegodcode.net
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-actionlink%2C-ajax-zone-and-user-onclick-handler-tp16729287p16819660.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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