Re: Using a checkbox in a grid component

2009-08-10 Thread Sebastian Hennebrueder

Scot Mcphee schrieb:

Hello

Does any one have a short recipe how to use a checkbox in a grid component?

What I need to do is fairly simple - let the use select (for example) 
three of five available options presented in a grid component, and 
submit their selections, which are then processed. A good example would 
be a remove checkbox on a list of items in a shopping cart, where the 
items are are only in the user's session so database IDs won't do.


I've tried looking through the wiki, searching google, searching the 
mailing list with google, and looking through the 'Tapestry 5 Building 
Web Applications' book which I bought as a PDF, but alas, I can't find 
find a simple recipe for doing this.


I'd like to use the Grid because the data will be fairly complex (it 
isn't for the time being, once I get this technique functional it will 
be). I'd like the selection to change a value in the underlying POJO 
(e.g. Pojo.selected) that's backing the Grid. I have been unable to get 
this anywhere near any semblance of working.  Therefore currently any 
sort of technique that could possibly work would be appreciated, for 
example to have an ListPojo originalList and ListPojo selectedList - 
I've tried to see what convention might give me that behaviour but so 
far, been unable to uncover it.



scot


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



Here is an example with the chenille components
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/InPlaceEditor.html

Here is a snippet from my evaluation article, which I will publish this 
week.

extract of the template
form t:type=form t:id=addressForm
t:errors/
t:grid source=addresses row=address
p:nameCell
t:hidden value=address.id/
			input t:type=TextField t:id=name t:value=address.name 
t:validate=required, maxlength=10 size=10/

/p:nameCell
p:cityCell
			input t:type=TextField t:id=city t:value=address.city 
t:validate=required, maxlength=10 size=10/

/p:cityCell
/t:grid
input type=submit value=Save/
/form
The page class
public class VariousComponents {

private ListAddress addresses = new ArrayListAddress();

@Property
private Address address;

public VariousComponents() {
		addresses.add(new Address(foo, Bad Vilbel, Germamy, Bubenweg 
1, Salutation.MR));
		addresses.add(new Address(bar, Aachen, Germamy, Neuer Weg 1, 
Salutation.MR));
		addresses.add(new Address(bazz, Frankfurt, Germamy, Neuer Weg 
2, Salutation.MR));
		addresses.add(new Address(bozz, Chemnitz, Germamy, Hase 1, 
Salutation.MR));

// just set an id value
for(int i = 0; i addresses.size();i++)
addresses.get(i).setId(i+1);
}

public ListAddress getAddresses() {
return addresses;
}
}


--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



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



Re: redirect from ajax request

2009-08-10 Thread Howard Lewis Ship
To be specific, when during an Ajax request the component even returns
a page class or page instance, Tapestry builds and returns a Link as
part of the JSON response, the the client-side loads that Link's URL
into the browser address, performing a redirect.

There are two implementations of ComponentEventResultProcessor, one
for @Traditional and one for @Ajax ... just bear that in mind if you
want to read the existing code, or extend the current behavior. They
are both based on a mapped configuration from return type to a
handler.

On Sun, Aug 9, 2009 at 5:34 PM, Thiago H. de Paula
Figueiredothiag...@gmail.com wrote:
 Em Sat, 08 Aug 2009 15:26:45 -0300, Mario Rabe mario.r...@googlemail.com
 escreveu:

 Hi,

 Hi!

 how can I do a redirect from a XHR-request? Here an example to make clear
 what I want to do:

 If it was a Tapestry-provided event, you could just return a page instance,
 a page class, an URL or a page name in an event handler method.
 Looking at the Form component sources, it uses this callback instance in its
 VALIDATE_FORM event:

 ComponentResultProcessorWrapper callback = new
 ComponentResultProcessorWrapper(componentEventResultProcessor);

 componentEventResultProcessor comes from an environmental service:

 @Environmental
 private ComponentEventResultProcessor componentEventResultProcessor;

 Try using the above callback and please post the results. :)

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





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



Re: redirect from ajax request

2009-08-10 Thread Mario Rabe
Actually its was pretty easy (like most things I try to do with tapestry) as
soon as I understand the concept. Simply getting the
current ComponentEventResultProcessor from the Environment, wrap it in case
of exceptions and let it process the return-value. It is really as easy as
this, EXCEPT you use the processor AND return a value after that.
This way I managed it to have 2 json-objects in the response which made
tapestry.js really mad =D

{redirectURL:/TapTestReal/about}{content:And another counter: 11}


public class Counter {

@InjectComponent
private Zone countzone;

@Inject
private ComponentResources componentResources;

@Environmental
private ComponentEventResultProcessor componentEventResultProcessor;

@Property
@Persist
private int count;

private Object fireValueChanged() throws IOException {
ComponentResultProcessorWrapper callback = new
ComponentResultProcessorWrapper(componentEventResultProcessor);
componentResources.triggerEvent(valueChanged, new Object[]{new
Integer(count)}, callback);
if (!callback.isAborted()) {
return countzone.getBody();
}
return null;
}

public Object onUp() throws IOException {
count++;
return fireValueChanged();
}

public Object onDown() throws IOException {
count--;
return fireValueChanged();
}

public Object onReset() throws IOException {
count = 0;
return fireValueChanged();
}

public String getZoneId(){
return countzone.getClientId();  //with this I can use this
component multiple times on a single page even with ajax enabled
}
}

I cutted some pieces of code which implement features not used in this
context, hopefully it still compiles. That component can be used on a page
like:

Object onValueChangedFromEggCounter(int value){
if(value  10)
return ToMuchEggs.class;
return null;
}

and everything works like expected (if counter reaches 11 you are redirected
to another page).

- Mario

2009/8/10 Howard Lewis Ship hls...@gmail.com

 To be specific, when during an Ajax request the component even returns
 a page class or page instance, Tapestry builds and returns a Link as
 part of the JSON response, the the client-side loads that Link's URL
 into the browser address, performing a redirect.

 There are two implementations of ComponentEventResultProcessor, one
 for @Traditional and one for @Ajax ... just bear that in mind if you
 want to read the existing code, or extend the current behavior. They
 are both based on a mapped configuration from return type to a
 handler.

 On Sun, Aug 9, 2009 at 5:34 PM, Thiago H. de Paula
 Figueiredothiag...@gmail.com wrote:
  Em Sat, 08 Aug 2009 15:26:45 -0300, Mario Rabe 
 mario.r...@googlemail.com
  escreveu:
 
  Hi,
 
  Hi!
 
  how can I do a redirect from a XHR-request? Here an example to make
 clear
  what I want to do:
 
  If it was a Tapestry-provided event, you could just return a page
 instance,
  a page class, an URL or a page name in an event handler method.
  Looking at the Form component sources, it uses this callback instance in
 its
  VALIDATE_FORM event:
 
  ComponentResultProcessorWrapper callback = new
  ComponentResultProcessorWrapper(componentEventResultProcessor);
 
  componentEventResultProcessor comes from an environmental service:
 
  @Environmental
  private ComponentEventResultProcessor componentEventResultProcessor;
 
  Try using the above callback and please post the results. :)
 
  --
  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
 
 



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




Tapestry at ApacheCon US, early bird registration ends on Friday

2009-08-10 Thread Jukka Zitting
Hi,

Join us in Oakland on the first week of November for ApacheCon US 2009
to catch up with the latest on Tapestry and other Apache projects!

If you're interested and want to save some money, note that the early
bird registration ends this Friday.

The conference is also looking for interested sponsors at many different levels.

See below for more information from the Apache announcement list.

BR,

Jukka Zitting

-- Forwarded message --
From: Sally Khudairi s...@apache.org
Date: Sat, Aug 8, 2009 at 3:55 AM
Subject: Sign up for ApacheCon US by 14 August and save up to $500!
To: annou...@apache.org, annou...@apachecon.com



Sign up for ApacheCon US by 14 August and save up to $500!

This year's ApacheCon US promises to deliver our most extensive
program to date, and largest anticipated gathering of the global
Apache community to celebrate the ASF's milestone 10th Anniversary.
The San Francisco Bay Area is where the very first ASF official user
conference was held, and we hope that you will join us in celebrating
the ASF's success!

Apache members, code contributors, users, developers, system
administrators, business managers, service providers, and vendors will
convene 2-6 November in Oakland, California, for a week of training,
presentations, sharing and hacking. ApacheCon US 2009 features new
content tracks, MeetUps, and GetTogethers, as well as a number of
events open to the public free of charge, such as the Hackathon and
2-day BarCampApache, in appreciation of their support over the past
decade.

Be sure to register by 14 August to save up to $500! To sign up, visit
http://www.us.apachecon.com/

Those wishing to attend ApacheCon, but may be unable to do so due to
financial reasons are encouraged to apply for Travel Assistance by
completing the form at http://www.apache.org/travel/ Financial support
for flights, accommodation, subsistence, and conference fees are
availablAnyone involved in Open Source is welcome to apply for
financial support for flights, accommodation, subsistence and
Conference fees. Hurry, applications close on 17 August.

Conference sponsor, exhibitor, and community partnerships are also
available: please contact Delia Frees at de...@apachecon.com for
details.

# # #

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



Re: Using a checkbox in a grid component

2009-08-10 Thread raucha

You might not even need any chenillekit on this. I use:


t:parameter name=nameCell
  t:checkbox t:id=name t:value=row.name/
/t:parameter


Sebastian Hennebrueder wrote:
 
 Scot Mcphee schrieb:
 Hello
 
 Does any one have a short recipe how to use a checkbox in a grid
 component?
 
 What I need to do is fairly simple - let the use select (for example) 
 three of five available options presented in a grid component, and 
 submit their selections, which are then processed. A good example would 
 be a remove checkbox on a list of items in a shopping cart, where the 
 items are are only in the user's session so database IDs won't do.
 
 I've tried looking through the wiki, searching google, searching the 
 mailing list with google, and looking through the 'Tapestry 5 Building 
 Web Applications' book which I bought as a PDF, but alas, I can't find 
 find a simple recipe for doing this.
 
 I'd like to use the Grid because the data will be fairly complex (it 
 isn't for the time being, once I get this technique functional it will 
 be). I'd like the selection to change a value in the underlying POJO 
 (e.g. Pojo.selected) that's backing the Grid. I have been unable to get 
 this anywhere near any semblance of working.  Therefore currently any 
 sort of technique that could possibly work would be appreciated, for 
 example to have an ListPojo originalList and ListPojo selectedList - 
 I've tried to see what convention might give me that behaviour but so 
 far, been unable to uncover it.
 
 
 scot
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 Here is an example with the chenille components
 http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/InPlaceEditor.html
 
 Here is a snippet from my evaluation article, which I will publish this 
 week.
 extract of the template
 form t:type=form t:id=addressForm
   t:errors/
   t:grid source=addresses row=address
   p:nameCell
   t:hidden value=address.id/
   input t:type=TextField t:id=name 
 t:value=address.name 
 t:validate=required, maxlength=10 size=10/
   /p:nameCell
   p:cityCell
   input t:type=TextField t:id=city 
 t:value=address.city 
 t:validate=required, maxlength=10 size=10/
   /p:cityCell
   /t:grid
   input type=submit value=Save/
 /form
 The page class
 public class VariousComponents {
 
   private ListAddress addresses = new ArrayListAddress();
 
   @Property
   private Address address;
   
   public VariousComponents() {
   addresses.add(new Address(foo, Bad Vilbel, Germamy, 
 Bubenweg 
 1, Salutation.MR));
   addresses.add(new Address(bar, Aachen, Germamy, Neuer 
 Weg 1, 
 Salutation.MR));
   addresses.add(new Address(bazz, Frankfurt, Germamy, 
 Neuer Weg 
 2, Salutation.MR));
   addresses.add(new Address(bozz, Chemnitz, Germamy, Hase 
 1, 
 Salutation.MR));
   // just set an id value
   for(int i = 0; i addresses.size();i++)
   addresses.get(i).setId(i+1);
   }
 
   public ListAddress getAddresses() {
   return addresses;
   }
 }
 
 
 -- 
 Best Regards / Viele Grüße
 
 Sebastian Hennebrueder
 -
 Software Developer and Trainer for Hibernate / Java Persistence
 http://www.laliluna.de
 
 
 
 -
 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/Using-a-checkbox-in-a-grid-component-tp24894595p24899653.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.1 Parsing Errors

2009-08-10 Thread Michael Gentry
In my .tml file I have a line:

td nowrapIndividual ID/td

Tapestry fails to parse this:

Unexpected character '' (code 62) expected '=' at [row,col
{unknown-source}]: [17,17]

I think it is expecting nowrap=something ... is this to be expected?

Also, if I try to use a non-breakable space:

tdIndividualnbsp;ID/td

I get a different parsing error:

Undeclared general entity nbsp at [row,col {unknown-source}]: [17,26]

Thoughts?  (I know ... use CSS ...)

Thanks,

mrg

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



Re: T5.1 Parsing Errors

2009-08-10 Thread Thiago H. de Paula Figueiredo
Em Mon, 10 Aug 2009 12:23:24 -0300, Michael Gentry mgen...@masslight.net  
escreveu:



In my .tml file I have a line:
td nowrapIndividual ID/td
Tapestry fails to parse this:
Unexpected character '' (code 62) expected '=' at [row,col
{unknown-source}]: [17,17]
I think it is expecting nowrap=something ... is this to be expected?


Yes. Tapestry's templates must be valid XML, even when generating HTML.


Also, if I try to use a non-breakable space:
tdIndividualnbsp;ID/td
I get a different parsing error:
Undeclared general entity nbsp at [row,col {unknown-source}]: [17,26]
Thoughts?  (I know ... use CSS ...)


Use CSS! :)
Again, templates must be valid XML, so you need to add  
xmlns=http://www.w3.org/1999/xhtml; to the root tag in your template.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: T5.1 Parsing Errors

2009-08-10 Thread Michael Gentry
Thanks Thiago.  I was trying to do something quick and dirty, but I
guess I'll do it the right way.  :-)

mrg


On Mon, Aug 10, 2009 at 11:39 AM, Thiago H. de Paula
Figueiredothiag...@gmail.com wrote:
 Em Mon, 10 Aug 2009 12:23:24 -0300, Michael Gentry mgen...@masslight.net
 escreveu:

 In my .tml file I have a line:
 td nowrapIndividual ID/td
 Tapestry fails to parse this:
 Unexpected character '' (code 62) expected '=' at [row,col
 {unknown-source}]: [17,17]
 I think it is expecting nowrap=something ... is this to be expected?

 Yes. Tapestry's templates must be valid XML, even when generating HTML.

 Also, if I try to use a non-breakable space:
 tdIndividualnbsp;ID/td
 I get a different parsing error:
 Undeclared general entity nbsp at [row,col {unknown-source}]: [17,26]
 Thoughts?  (I know ... use CSS ...)

 Use CSS! :)
 Again, templates must be valid XML, so you need to add
 xmlns=http://www.w3.org/1999/xhtml; to the root tag in your template.

 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago

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



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



T5.0.18 javascript error in IE on a datefield

2009-08-10 Thread DavidWei

I was trying to use datefield component  to enter a date from builtin
calendar, but it showed a javascript error, this.pupup.clinePosition(...) is
null or not an object, when a calendar icon is clicked first time. 

sample Codes like this.

in tml file:

tr
tdBirth Date:/td
td
input type=text t:type=datefield
t:value=dateOfBirth/
/td
/tr

in java codes:

@Persist
private Date dateOfBirth;
public Date getDateOfBirth()
{
return dateOfBirth;
}
public void setDateOfBirth(Date dateOfBirth)
{
this.dateOfBirth = dateOfBirth;
}

Can anybody tell me whether it is still a knowing issue or fixed already? If
it is still an issue,  what is the alternative solution?

Thanks,

David
-- 
View this message in context: 
http://www.nabble.com/T5.0.18-javascript-error-in-IE-on-a-datefield-tp24902769p24902769.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 Parsing Errors

2009-08-10 Thread Lance Java
td nowrap=true should work

2009/8/10 Michael Gentry mgen...@masslight.net

 Thanks Thiago.  I was trying to do something quick and dirty, but I
 guess I'll do it the right way.  :-)

 mrg


 On Mon, Aug 10, 2009 at 11:39 AM, Thiago H. de Paula
 Figueiredothiag...@gmail.com wrote:
  Em Mon, 10 Aug 2009 12:23:24 -0300, Michael Gentry 
 mgen...@masslight.net
  escreveu:
 
  In my .tml file I have a line:
  td nowrapIndividual ID/td
  Tapestry fails to parse this:
  Unexpected character '' (code 62) expected '=' at [row,col
  {unknown-source}]: [17,17]
  I think it is expecting nowrap=something ... is this to be expected?
 
  Yes. Tapestry's templates must be valid XML, even when generating HTML.
 
  Also, if I try to use a non-breakable space:
  tdIndividualnbsp;ID/td
  I get a different parsing error:
  Undeclared general entity nbsp at [row,col {unknown-source}]: [17,26]
  Thoughts?  (I know ... use CSS ...)
 
  Use CSS! :)
  Again, templates must be valid XML, so you need to add
  xmlns=http://www.w3.org/1999/xhtml; to the root tag in your template.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java consultant, developer, and instructor
  http://www.arsmachina.com.br/thiago
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 

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




Re: T5.1 Parsing Errors

2009-08-10 Thread Christian Köberl

Use td nowrap=nowrap

See also: http://www.w3schools.com/Xhtml/xhtml_syntax.asp

-- 
Chris
-- 
View this message in context: 
http://n2.nabble.com/T5.1-Parsing-Errors-tp3417841p3418509.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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



Re: @OnEvent annotated methods not firing

2009-08-10 Thread Thiago H. de Paula Figueiredo
Em Mon, 10 Aug 2009 14:28:09 -0300, ApocB apocalypticwab...@hotmail.com  
escreveu:



Hello All,


Hi!


I'm encountering a problem that's driving me crazy... I'm running through
the samples provided in the Tapestry 5 book published by Packt...


That book was written against an old version of Tapestry 5, so be warned  
that many things have changed since them.



t:submit t:id=submitButton value=Submit/
input type=submit t:type=submit t:id=resetButton



   @OnEvent(component=submitButton)
void onSubmitButton() {


The Submit component fires the selected (EventConstants.SELECTED) event,  
so you should use @OnEvent(component=submitButton, value =  
EventConstants.SELECTED) or
name your method onSelectedFromSubmitButton(). You don't need to use both  
@OnEvent and method naming: just one of them is enough, but its ok to use  
both.


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



tapestry-spring-security-2.1.0 logout issue

2009-08-10 Thread Norman Franke
When I try to logout via tapestry-spring-security-2.1.0 (as in the  
example, logoutService.logout() in my event handler for the logout  
link), I get this error all the time:


How can I logout without error and go back to the main page?
java.lang.IllegalStateException: setAttribute: Session already  
invalidated
	 
org 
.apache 
.catalina.session.StandardSession.setAttribute(StandardSession.java: 
1291)
	 
org 
.apache 
.catalina.session.StandardSession.setAttribute(StandardSession.java: 
1256)
	 
org 
.apache 
.catalina 
.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java: 
130)
	 
org 
.apache 
.tapestry5 
.internal.services.SessionImpl.restoreDirtyObjects(SessionImpl.java:129)
	 
org 
.apache 
.tapestry5 
.internal 
.services 
.RestoreDirtySessionObjects 
.requestDidComplete(RestoreDirtySessionObjects.java:38)
	 
org 
.apache 
.tapestry5 
.internal 
.services.EndOfRequestEventHubImpl.fire(EndOfRequestEventHubImpl.java: 
40)
	 
$ 
EndOfRequestEventHub_1230686f209 
.fire($EndOfRequestEventHub_1230686f209.java)
	org.apache.tapestry5.services.TapestryModule 
$4.service(TapestryModule.java:782)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	org.apache.tapestry5.services.TapestryModule 
$3.service(TapestryModule.java:767)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	 
org 
.apache 
.tapestry5 
.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
	org.apache.tapestry5.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:90)
	org.apache.tapestry5.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:81)
	 
org 
.apache 
.tapestry5 
.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
	 
org 
.apache 
.tapestry5 
.internal 
.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103)

$RequestHandler_1230686f22e.service($RequestHandler_1230686f22e.java)
$RequestHandler_1230686f221.service($RequestHandler_1230686f221.java)
	org.apache.tapestry5.services.TapestryModule 
$HttpServletRequestHandlerTerminator.service(TapestryModule.java:197)
	org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java: 
53)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
org 
.apache 
.tapestry5 
.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java: 
62)
	 
$ 
HttpServletRequestFilter_1230686f220 
.service($HttpServletRequestFilter_1230686f220.java)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
	org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke 
(FilterSecurityInterceptor.java:109)
	org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter 
(FilterSecurityInterceptor.java:83)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.HttpServletRequestFilterWrapper 
.service(HttpServletRequestFilterWrapper.java:52)
	 
$ 
HttpServletRequestFilter_1230686f21d 
.service($HttpServletRequestFilter_1230686f21d.java)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.SpringSecurityExceptionTranslationFilter 
.doFilterHttp(SpringSecurityExceptionTranslationFilter.java:100)
	 
org 
.springframework 
.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.HttpServletRequestFilterWrapper 
.service(HttpServletRequestFilterWrapper.java:52)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
	 
org 
.springframework 
.security 
.providers 
.anonymous 
.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java: 
105)
	 
org 
.springframework 
.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	 
nu 
.localhost 
.tapestry5 
.springsecurity 
.services 
.internal 
.HttpServletRequestFilterWrapper 
.service(HttpServletRequestFilterWrapper.java:52)
	 
$ 
HttpServletRequestFilter_1230686f21c 
.service($HttpServletRequestFilter_1230686f21c.java)
	 
$ 
HttpServletRequestHandler_1230686f223 
.service($HttpServletRequestHandler_1230686f223.java)
	 
nu 
.localhost 
.tapestry5 
.springsecurity.services.internal.HttpServletRequestFilterWrapper 

Re: @OnEvent annotated methods not firing

2009-08-10 Thread ApocB

Thiago,

I just tried this, and it's still not working... It should work... I can't
seem to find what i'm missing...

-- 
View this message in context: 
http://www.nabble.com/%40OnEvent-annotated-methods-not-firing-tp24903936p24909456.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: Using a checkbox in a grid component

2009-08-10 Thread Scot Mcphee



On 10/08/2009, at 23:22 , raucha wrote:



You might not even need any chenillekit on this. I use:


t:parameter name=nameCell
 t:checkbox t:id=name t:value=row.name/
/t:parameter



Yes indeed.

In the end I got this to work

  t:grid source=contacts row=contact
p:selectedcell
  t:checkbox t:id=selected value=contact.selected /
/p:selectedcell
  /t:grid

Which is remarkably similar to what I had in the first place. So I  
don't really know what I did wrong in the first instance that led me  
to bolt down a rabbit hole.


BTW Is there any effective difference in using the t:parameter  
name=propertynameCell style versus the p:propertynameCell style  
of controlling the cell render?



--
scot.mcp...@gmail.com
http://crazymcphee.net/






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



Re: Using a checkbox in a grid component

2009-08-10 Thread Thiago H. de Paula Figueiredo
Em Mon, 10 Aug 2009 21:42:56 -0300, Scot Mcphee scot.mcp...@gmail.com  
escreveu:


BTW Is there any effective difference in using the t:parameter  
name=propertynameCell style versus the p:propertynameCell style of  
controlling the cell render?


No difference. t:parameter name=property was the first syntax  
provided. The p:propertyName is the new one, added in 5.1.0.x.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: t5: URLWriting and non t5 site

2009-08-10 Thread Martin Strand
That depends on your setup...

If you're running both applications through an Apache instance (with mod_php 
and a proxy to your servlet container) you could rewrite the request there with 
mod_rewrite, before it even reaches Tapestry.
I don't think you'll be able to change the Host header, but perhaps that's not 
necessary to make the php app work?

If you're running the PHP app from your servlet container I suppose this could 
be doable if Tapestry rewrites the request and then forwards it to your PHP 
servlet.

If the two applications aren't even running in the same web server instance, 
you need a forward proxy. mod_rewrite can do this, and I think there are 
proxies available for Tomcat and Jetty too. Tapestry's url rewriting has no 
proxying support as far as I know.

Martin

On Tue, 11 Aug 2009 02:29:37 +0200, Angelo Chen angelochen...@yahoo.com.hk 
wrote:


 Hi,

 is it possible to use URL rewriting for non t5 urls? example:

 http://127.0.0.1:8080/items

 it will end up to: http://php_app.127.0.0.1:8080
 without the new url got shown in the address bar of browser?

 Thanks,

 angelo

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



Re: t5: URLWriting and non t5 site

2009-08-10 Thread Angelo Chen

Hi,

Thanks for the quick reply,  is it possible to run a php app in a servlet
container? this might open possibilities integrating php apps into t5 app,
some more info on this? 

Angelo


Martin Strand-4 wrote:
 
 If you're running the PHP app from your servlet container I suppose this
 could be doable if Tapestry rewrites the request and then forwards it to
 your PHP servlet.
 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-URLWriting-and-non-t5-site-tp24909890p24910911.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: URLWriting and non t5 site

2009-08-10 Thread Martin Strand
I don't know anything about it but Caucho claims to have a working 
implementation
http://www.caucho.com/resin-3.0/quercus/

Martin

On Tue, 11 Aug 2009 04:53:34 +0200, Angelo Chen angelochen...@yahoo.com.hk 
wrote:


 Hi,

 Thanks for the quick reply,  is it possible to run a php app in a servlet
 container? this might open possibilities integrating php apps into t5 app,
 some more info on this?

 Angelo


 Martin Strand-4 wrote:

 If you're running the PHP app from your servlet container I suppose this
 could be doable if Tapestry rewrites the request and then forwards it to
 your PHP servlet.

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