Tacos : Disable Form component when request

2006-06-06 Thread seng kim khong

Hi All,

I would like to ask that is it possible we can disable the component in a
form when ajax request and enable the component back after ajax response by
using tacos?

Can anybody provide me some guide in doing htis?

Thank you!

--
Regards,
Khong Seng Kin


RE: Wiring up an Export service

2006-06-06 Thread Barry Heath
Patrick,

I've just been tasked with integrating BIRT into our Tapestry 3 application.
It appears as if you've done most of the heavly lifting already.

Would you be willing to share a little more detail about your integration.
I can roughly follow what you've outlined below, but it appears as if all of
the BIRT magic takes place in your ReportManager class.  Also, out of
curiousity, what are the issues you ran into with date parameters and BIRT?

Thank you for your time.


=
| Barry Heath
| sandiego.com
| (619) 220-8601
= 

-Original Message-
From: Patrick Casey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 9:24 AM
To: 'Tapestry users'
Subject: RE: Wiring up an Export service


Steve,

Probably the easiest way to invoke a service is to link directly to
it rather than use a directlink, have the page listener fire, and then
invoke the service. So what I'd recommend is that you see if you can use the
existing ServiceLink component to invoke your service or, alternately, just
write your own "PDFLink" component.

Here as a model is a service of mine that prints BIRT reports (I'm
not including all the dependencies but you an see the code flow). Also
attached is the ReportLink component that links to it.

1: The report Link jwc and .html


http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>




add a description










2: The ReportLink .java (which constructs the link to the service)

package components;

import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.engine.IEngineService;
import org.apache.tapestry.engine.ILink;

import services.ReportServer;

public abstract class ReportLink extends BaseComponent {
private String fReportName;
private String fText;
private boolean fPdf = false;
private String[] fKeys;
private String[] fValues;

public boolean isPdf() {
return fPdf;
}

public void setPdf(boolean pdf) {
fPdf = pdf;
}

public String[] getKeys() {
return fKeys;
}

public void setKeys(String[] keys) {
fKeys = keys;
}

public String getReportName() {
return fReportName;
}

public void setReportName(String reportName) {
fReportName = reportName;
}

public String[] getValues() {
return fValues;
}

public void setValues(String[] values) {
fValues = values;
}

public String getLink() {
IRequestCycle cycle = getPage().getRequestCycle();
IEngineService service =
cycle.getEngine().getService(ReportServer.SERVICE_NAME);

Object[] parms = new Object[4];
parms[0] = fReportName;
parms[1] = fKeys;
parms[2] = fValues;
parms[3] = fPdf;
ILink link = service.getLink(cycle, this, parms);
return link.getAbsoluteURL();
}

public String getText() {
return fText;
}

public void setText(String text) {
fText = text;
}

}

3: The Service Itself

package services;

import java.io.IOException;
import java.util.Date;
import java.util.HashMap;

import javax.servlet.ServletException;

import message.SystemMessage;
import navigation.Gallileo;

import org.apache.tapestry.IComponent;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.engine.AbstractService;
import org.apache.tapestry.engine.IEngineServiceView;
import org.apache.tapestry.engine.ILink;
import org.apache.tapestry.request.ResponseOutputStream;
import org.eclipse.birt.report.engine.api.HTMLRenderOption;

import presentation.Visit;

import reports.ReportManager;
import security.GateKeeper;
import servlet.MyServlet;
import utils.DateUtils;

public class ReportServer extends AbstractService {
public static final String SERVICE_NAME = "ReportServer";
private String FIRSTDOM = "$firstDOM";
private String FIRSTDONM = "$firstDONM";
private String FIRSTDOLM = "$firstDOLM";

private Object processValue(String test) {
if (test == null || !test.startsWith("$"))
return test;
// maybe
if (FIRSTDOM.equals(test)) 
return DateUtils.getFirstDayOfMonth(null);
else if (FIRSTDONM.equals(test))
return DateUtils.getFirstDayOfNextMonth(null);
else if (FIRSTDOLM.equals(test))
return DateUtils.getFirstDayOfLastMonth(null);
else
return test;

}
pub

Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y

Sorry that I wasnt clear about the problems that I've been met. I've tried
to look into the code, when there is other Tapestry Form within the same
page with Tacos AjaxForm, Tapestry.register_form doesnt get called which
causing related issues like client side validation will not be handled.

Am i missing something? or misunderstood some of the concepts?

Thank you.


On 6/7/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


You might have to be more clear about what isn't working.

On 6/6/06, sp y < [EMAIL PROTECTED]> wrote:
>
> Thanks for your reply, Andreas.
> There's no difference from using tapestry 4 or 4.0.2 to me.
>
>
> On 6/7/06, Andreas Andreou < [EMAIL PROTECTED]> wrote:
> >
> > Are you using tapestry 4.0 or 4.0.2 ?
> >
> > sp y wrote:
> > > Hello, I have a page with AjaxForm and Tapestry Form which that
doesnt
> > > work
> > > well, which i believe it's the problems come from Tacos. I'm using
> > > Tacos 4
> > > beta 1 with Tapestry 4, I just can't get it work with tacos beta 2,
> > > nor do i
> > > have clear ideas why the simple tacos component page with tacos beta
3
> > > doesnt work.
> > >
> > > Anyone could help me? perhaps enlighten me with some changes to the
> > tacos
> > > beta 1's code?
> > >
> > > Thank you very much for your attention and replies.
> > >
> > >
> > > regards,
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.




JavaScript outside the body tag

2006-06-06 Thread Peter Dawn

hi all,
tapestry wouldnt let me reference a javascript file, outside a body
tag. when i put the actual code inline it works fine, but if i make a
ref to that file, it falls over.
any ideas on how to fix this.

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



Injected HttpServletRequest does not match cycle.requestContext.request

2006-06-06 Thread Mark Helmstetter
Why is the injected HttpServletRequest not compatible with the 
HttpServletRequest
obtained via the deprecated getRequestCycle().getRequestContext().getRequest()?


public abstract class LoginPage extends BasePage implements 
PageBeginRenderListener {

@InjectObject("service:tapestry.globals.HttpServletRequest")
public abstract HttpServletRequest getServletRequest();

public void pageBeginRender(PageEvent event) {
  // This works
  HttpServletRequest request =
event.getRequestCycle().getRequestContext().getRequest();
  SecurityContextHolderAwareRequestWrapper r =
(SecurityContextHolderAwareRequestWrapper)request;

  // This throws ClassCastException
  HttpServletRequest request2 = getServletRequest();
  SecurityContextHolderAwareRequestWrapper r2 =
(SecurityContextHolderAwareRequestWrapper)request2;
}
}


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



Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread Jesse Kuhnert

You might have to be more clear about what isn't working.

On 6/6/06, sp y <[EMAIL PROTECTED]> wrote:


Thanks for your reply, Andreas.
There's no difference from using tapestry 4 or 4.0.2 to me.


On 6/7/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>
> Are you using tapestry 4.0 or 4.0.2 ?
>
> sp y wrote:
> > Hello, I have a page with AjaxForm and Tapestry Form which that doesnt
> > work
> > well, which i believe it's the problems come from Tacos. I'm using
> > Tacos 4
> > beta 1 with Tapestry 4, I just can't get it work with tacos beta 2,
> > nor do i
> > have clear ideas why the simple tacos component page with tacos beta 3
> > doesnt work.
> >
> > Anyone could help me? perhaps enlighten me with some changes to the
> tacos
> > beta 1's code?
> >
> > Thank you very much for your attention and replies.
> >
> >
> > regards,
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y

Thanks for your reply, Andreas.
There's no difference from using tapestry 4 or 4.0.2 to me.


On 6/7/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:


Are you using tapestry 4.0 or 4.0.2 ?

sp y wrote:
> Hello, I have a page with AjaxForm and Tapestry Form which that doesnt
> work
> well, which i believe it's the problems come from Tacos. I'm using
> Tacos 4
> beta 1 with Tapestry 4, I just can't get it work with tacos beta 2,
> nor do i
> have clear ideas why the simple tacos component page with tacos beta 3
> doesnt work.
>
> Anyone could help me? perhaps enlighten me with some changes to the
tacos
> beta 1's code?
>
> Thank you very much for your attention and replies.
>
>
> regards,
>

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




RE: Tapernate Squeezer...

2006-06-06 Thread James Carman
The Tapernate entity squeezer has now been updated to include the
aforementioned changes.  The documentation
(www.carmanconsulting.com/tapernate) has been updated to reflect the new
configuration options available for the squeezer.  Enjoy!

James

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 7:52 PM
To: 'Tapestry users'
Subject: RE: Tapernate Squeezer...

That's the way I went with it.  I also made a configurable option (set via a
FactoryDefault symbol) that will allow you to tell it whether or not to use
the "short name" of the classes or not.  The default is to use the short
name.  

-Original Message-
From: Ted Steen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 7:42 PM
To: Tapestry users
Subject: Re: Tapernate Squeezer...

Hi,

I too like the idea of a configuration point for the substitutions.
I can't see a way to convert the name into something more simple,
without the risk of getting collisions and/or somewhat ugly URLs.

With a configuration point one will be able to;
 * Get the abbreviation of the entity class to be as small as a single
character
 * Have no collisions
 * Rename an entity without problems
 * "Force"/entices us to configure our own abbreviations, which is
good because otherwise there could be trouble when renaming entities.

2006/6/6, Andreas Andreou <[EMAIL PROTECTED]>:
> James Carman wrote:
> > Actually, I like Adreas Androu's idea.  He said (from the developers
list):
> >
> > "I think I would use the entire entity name enhanced with an optional
> > properties file that would allow users to define substitutions."
> >
> > However, I'm going to go one better.  Instead of using a properties
file,
> > I'll create a configuration point for the overrides.  That's the
"HiveMind
> > Way."
> >
> hehe! Actually I initially meant to write:
> "I think I would use the entire entity name enhanced with substitutions"
> feeling that you'll make out the missing parts
> > When I said "use the hashCode()", I meant to use the hashCode() of the
> > entity name (a String) itself, not of the entity.
> >
> > -Original Message-
> > From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
> > Andreas Bulling
> > Sent: Tuesday, June 06, 2006 8:24 AM
> > To: Tapestry users
> > Subject: Re: Tapernate Squeezer...
> >
> > Hi James,
> >
> > I'd vote for the hashCode() approach, why:
> >
> > 1) It's the approach already used and widely accepted (for example
> > in Hibernate)
> >
> > 2) using Hibernate (which is what Tapernate is dedicated to) you
> > are advised to implement hashCode() and equals() anyway (according
> > to the Hibernate homepage) so it's no additional expense to use
> > it for Tapernate.
> >
> > Just my two cents...
> >   Andreas
> >
> > On 06. Jun 2006 - 08:08:21, James Carman wrote:
> > | For those of you who are using Tapernate (and those of you who have
done
> > | something similar in the past), I have a question for you.  Currently,
the
> > | Tapernate entity squeezer uses an abbreviation for the class name
> > (basically
> > | an integer).  However, I was thinking that this might not be a good
thing
> > | for external links.  What would happen if the application is restarted
and
> > | someone has bookmarked an external link?  So, I need to come up with a
> > | reliable/repeatable way to "shrink" the entity name down to a small
> > string.
> > | Now, the situation gets even trickier when you consider the fact that
your
> > | application may add entity classes between releases.  Therefore, I
can't
> > | just sort the entity class names and then assign them a number (their
> > index
> > | in a list).  I *really* don't want the entire entity name in the URLs.
> > That
> > | would look kind of cheesy.  The way I see it, there are some
options...
> > |
> > | 1.  Use a message digest of the entity name.  The message digests
would
> > all
> > | be the same length, so we wouldn't have to worry about the URLs
"growing"
> > | when the entity name grew.  But, there *is* the chance for digest
> > collisions
> > | (digest of entity name A is the same as digest of entity name B).
> > |
> > | 2.  Use the hashCode() of the entity name Strings.  Again, we've got
the
> > | possibility for collisions.
> > |
> > | 3.  Just use the "simple" entity name (the part of the name after the
last
> > | '.').  I don't think Hibernate requires that you have unique "simple"
> > names
> > | for your entity classes.  In practice, this is typically not a
problem.
> > | But, in general, it's not a robust solution.
> > |
> > | 4.  Just use the entire entity name and don't worry about all of this!
> > | Users can override it if they wish and how they wish.
> > |
> > | I will be creating a service point which does the translation to/from
the
> > | entity name abbreviation and users can override it if they want.
Which of
> > | these (or if you have other ideas) would be the best "default",
though?
> > The
> > | entity squeezer will detect when t

RE: Tapernate Squeezer...

2006-06-06 Thread James Carman
That's the way I went with it.  I also made a configurable option (set via a
FactoryDefault symbol) that will allow you to tell it whether or not to use
the "short name" of the classes or not.  The default is to use the short
name.  

-Original Message-
From: Ted Steen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 7:42 PM
To: Tapestry users
Subject: Re: Tapernate Squeezer...

Hi,

I too like the idea of a configuration point for the substitutions.
I can't see a way to convert the name into something more simple,
without the risk of getting collisions and/or somewhat ugly URLs.

With a configuration point one will be able to;
 * Get the abbreviation of the entity class to be as small as a single
character
 * Have no collisions
 * Rename an entity without problems
 * "Force"/entices us to configure our own abbreviations, which is
good because otherwise there could be trouble when renaming entities.

2006/6/6, Andreas Andreou <[EMAIL PROTECTED]>:
> James Carman wrote:
> > Actually, I like Adreas Androu's idea.  He said (from the developers
list):
> >
> > "I think I would use the entire entity name enhanced with an optional
> > properties file that would allow users to define substitutions."
> >
> > However, I'm going to go one better.  Instead of using a properties
file,
> > I'll create a configuration point for the overrides.  That's the
"HiveMind
> > Way."
> >
> hehe! Actually I initially meant to write:
> "I think I would use the entire entity name enhanced with substitutions"
> feeling that you'll make out the missing parts
> > When I said "use the hashCode()", I meant to use the hashCode() of the
> > entity name (a String) itself, not of the entity.
> >
> > -Original Message-
> > From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
> > Andreas Bulling
> > Sent: Tuesday, June 06, 2006 8:24 AM
> > To: Tapestry users
> > Subject: Re: Tapernate Squeezer...
> >
> > Hi James,
> >
> > I'd vote for the hashCode() approach, why:
> >
> > 1) It's the approach already used and widely accepted (for example
> > in Hibernate)
> >
> > 2) using Hibernate (which is what Tapernate is dedicated to) you
> > are advised to implement hashCode() and equals() anyway (according
> > to the Hibernate homepage) so it's no additional expense to use
> > it for Tapernate.
> >
> > Just my two cents...
> >   Andreas
> >
> > On 06. Jun 2006 - 08:08:21, James Carman wrote:
> > | For those of you who are using Tapernate (and those of you who have
done
> > | something similar in the past), I have a question for you.  Currently,
the
> > | Tapernate entity squeezer uses an abbreviation for the class name
> > (basically
> > | an integer).  However, I was thinking that this might not be a good
thing
> > | for external links.  What would happen if the application is restarted
and
> > | someone has bookmarked an external link?  So, I need to come up with a
> > | reliable/repeatable way to "shrink" the entity name down to a small
> > string.
> > | Now, the situation gets even trickier when you consider the fact that
your
> > | application may add entity classes between releases.  Therefore, I
can't
> > | just sort the entity class names and then assign them a number (their
> > index
> > | in a list).  I *really* don't want the entire entity name in the URLs.
> > That
> > | would look kind of cheesy.  The way I see it, there are some
options...
> > |
> > | 1.  Use a message digest of the entity name.  The message digests
would
> > all
> > | be the same length, so we wouldn't have to worry about the URLs
"growing"
> > | when the entity name grew.  But, there *is* the chance for digest
> > collisions
> > | (digest of entity name A is the same as digest of entity name B).
> > |
> > | 2.  Use the hashCode() of the entity name Strings.  Again, we've got
the
> > | possibility for collisions.
> > |
> > | 3.  Just use the "simple" entity name (the part of the name after the
last
> > | '.').  I don't think Hibernate requires that you have unique "simple"
> > names
> > | for your entity classes.  In practice, this is typically not a
problem.
> > | But, in general, it's not a robust solution.
> > |
> > | 4.  Just use the entire entity name and don't worry about all of this!
> > | Users can override it if they wish and how they wish.
> > |
> > | I will be creating a service point which does the translation to/from
the
> > | entity name abbreviation and users can override it if they want.
Which of
> > | these (or if you have other ideas) would be the best "default",
though?
> > The
> > | entity squeezer will detect when there is a collision and either throw
an
> > | exception or print an error message to the logs (haven't decided yet)
to
> > let
> > | you know that you need to come up with a better solution for entity
name
> > | abbreviation.
> > |
> > | James
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PRO

Re: Tapernate Squeezer...

2006-06-06 Thread Ted Steen

Hi,

I too like the idea of a configuration point for the substitutions.
I can't see a way to convert the name into something more simple,
without the risk of getting collisions and/or somewhat ugly URLs.

With a configuration point one will be able to;
* Get the abbreviation of the entity class to be as small as a single character
* Have no collisions
* Rename an entity without problems
* "Force"/entices us to configure our own abbreviations, which is
good because otherwise there could be trouble when renaming entities.

2006/6/6, Andreas Andreou <[EMAIL PROTECTED]>:

James Carman wrote:
> Actually, I like Adreas Androu's idea.  He said (from the developers list):
>
> "I think I would use the entire entity name enhanced with an optional
> properties file that would allow users to define substitutions."
>
> However, I'm going to go one better.  Instead of using a properties file,
> I'll create a configuration point for the overrides.  That's the "HiveMind
> Way."
>
hehe! Actually I initially meant to write:
"I think I would use the entire entity name enhanced with substitutions"
feeling that you'll make out the missing parts
> When I said "use the hashCode()", I meant to use the hashCode() of the
> entity name (a String) itself, not of the entity.
>
> -Original Message-
> From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
> Andreas Bulling
> Sent: Tuesday, June 06, 2006 8:24 AM
> To: Tapestry users
> Subject: Re: Tapernate Squeezer...
>
> Hi James,
>
> I'd vote for the hashCode() approach, why:
>
> 1) It's the approach already used and widely accepted (for example
> in Hibernate)
>
> 2) using Hibernate (which is what Tapernate is dedicated to) you
> are advised to implement hashCode() and equals() anyway (according
> to the Hibernate homepage) so it's no additional expense to use
> it for Tapernate.
>
> Just my two cents...
>   Andreas
>
> On 06. Jun 2006 - 08:08:21, James Carman wrote:
> | For those of you who are using Tapernate (and those of you who have done
> | something similar in the past), I have a question for you.  Currently, the
> | Tapernate entity squeezer uses an abbreviation for the class name
> (basically
> | an integer).  However, I was thinking that this might not be a good thing
> | for external links.  What would happen if the application is restarted and
> | someone has bookmarked an external link?  So, I need to come up with a
> | reliable/repeatable way to "shrink" the entity name down to a small
> string.
> | Now, the situation gets even trickier when you consider the fact that your
> | application may add entity classes between releases.  Therefore, I can't
> | just sort the entity class names and then assign them a number (their
> index
> | in a list).  I *really* don't want the entire entity name in the URLs.
> That
> | would look kind of cheesy.  The way I see it, there are some options...
> |
> | 1.  Use a message digest of the entity name.  The message digests would
> all
> | be the same length, so we wouldn't have to worry about the URLs "growing"
> | when the entity name grew.  But, there *is* the chance for digest
> collisions
> | (digest of entity name A is the same as digest of entity name B).
> |
> | 2.  Use the hashCode() of the entity name Strings.  Again, we've got the
> | possibility for collisions.
> |
> | 3.  Just use the "simple" entity name (the part of the name after the last
> | '.').  I don't think Hibernate requires that you have unique "simple"
> names
> | for your entity classes.  In practice, this is typically not a problem.
> | But, in general, it's not a robust solution.
> |
> | 4.  Just use the entire entity name and don't worry about all of this!
> | Users can override it if they wish and how they wish.
> |
> | I will be creating a service point which does the translation to/from the
> | entity name abbreviation and users can override it if they want.  Which of
> | these (or if you have other ideas) would be the best "default", though?
> The
> | entity squeezer will detect when there is a collision and either throw an
> | exception or print an error message to the logs (haven't decided yet) to
> let
> | you know that you need to come up with a better solution for entity name
> | abbreviation.
> |
> | James
>
> -
> 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]





--
ted

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



Re: get status from http response

2006-06-06 Thread Shing Hing Man
Have you tried to  inject a HttpServletReponse into a
Tapestry page .java file with the following?

@InjectObject("service:tapestry.globals.HttpServletResponse")
public abstract HttpServletResponse
getServletResponse();


Shing



--- Eddie Fang <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> In order to get the status back from
> HttpServletResponse, I've tried
> overriding servletwebresponse, as well as
> implementing a
> HttpServletResponseWrapper, to no avail. 
> setStatus() doesn't seem to be
> called either way.  Does anyone have an idea how to
> get the status back
> by any chance?
> 
> Thanks,
> 
> Eddie
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



get status from http response

2006-06-06 Thread Eddie Fang
Hi,

In order to get the status back from HttpServletResponse, I've tried
overriding servletwebresponse, as well as implementing a
HttpServletResponseWrapper, to no avail.  setStatus() doesn't seem to be
called either way.  Does anyone have an idea how to get the status back
by any chance?

Thanks,

Eddie

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



Re: Tacos examples

2006-06-06 Thread Peter Dawn

i experienced the same problem, but then i downloaded the demo from
their site and deployed it locally on my server and then i was able to
see its implementation, the same as the demo on the above mentioned
servers. perhaps deploying it locally would save the developers
bandwidth and hosting costs.

so if you want to view the demo offline anytime download the demo file
and deploy it on your local machine and you should be able to see its
implementation.

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



Re: Tacos examples

2006-06-06 Thread Jesse Kuhnert

It's been moved to the new site finally, but I still need to do some
subdomain fun to get it the way I'd like.

This demo is current as of a few days ago, so it might be misleading to say
it's "official" if there are any bugs/ whatever..

http://opencomponentry.com:8080/tacos

On 6/6/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:


Hi folks,

as a next step on my way up the learning curve I'd like to put some
Ajax stuff on my page: For example replace some of the form
components with the corresponding Ajax one's...

I've seen on the Tacos site that there should be a Live Demo
available under http://demo.opennotion.com/tacos4/
but unfortunately it doesn't work as the link seems to be broken.

Is it possible to test the demo somewhere else and/or could one
of the  Tacos developers reading this list fix it?
That would be great! ;-)

Thanks in advance,
  Andreas

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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Tacos examples

2006-06-06 Thread Andreas Bulling
Hi folks,

as a next step on my way up the learning curve I'd like to put some
Ajax stuff on my page: For example replace some of the form
components with the corresponding Ajax one's...

I've seen on the Tacos site that there should be a Live Demo
available under http://demo.opennotion.com/tacos4/
but unfortunately it doesn't work as the link seems to be broken.

Is it possible to test the demo somewhere else and/or could one
of the  Tacos developers reading this list fix it?
That would be great! ;-)

Thanks in advance,
  Andreas

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



Re: strange problem losing session variables

2006-06-06 Thread Henri Dupre

Yes we have been experienced those... Are you using tapestry 3 or tapestry
4? Which servlet engine?
Since we switched to tapestry 4, we have seen way less of these...
And I'm 99% positive this has not anything to do with the code.


On 6/5/06, John Menke <[EMAIL PROTECTED]> wrote:


Is anyone experiencing any problems with "lost" session variables?  We
have
an application that stores some state in the session and we are getting
strange errors caused by objects that were
previously being in the session being "lost".  When our code tries to
access
these variables it gives nullpointer errors.

What is strange is that the session is not being lost itself - if this was
the case the StaleSession page would appear via tapestry...

-jm





--
Thanks,

Henri.


RE: strange problem losing session variables

2006-06-06 Thread Steve Shucker
I've seen something like this once before involving an app designed for a
small number of large sessions.  My problem was that I was persisting my
sessions in-memory.  When there was no more memory available, my app server
(weblogic 8.1) conveniently started discarding sessions.  Turning on JDBC
session persistence and making a bunch of classes implement Serializable
fixed the problem.  I expect disk-based persistence would also have worked
fine.  I'm not sure if this problem is specific to weblogic or applies to
other app servers, though.

-Steve

-Original Message-
From: John Menke [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 10:04 AM
To: Tapestry User
Subject: strange problem losing session variables

Is anyone experiencing any problems with "lost" session variables?  We have
an application that stores some state in the session and we are getting
strange errors caused by objects that were
previously being in the session being "lost".  When our code tries to access
these variables it gives nullpointer errors.

What is strange is that the session is not being lost itself - if this was
the case the StaleSession page would appear via tapestry...

-jm


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



RE: Tapernate and Spring

2006-06-06 Thread James Carman
Or maybe we should use HiveMind and not Spring! :-)


-Original Message-
From: Payne, Matthew [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 1:58 PM
To: Tapestry users
Subject: RE: Tapernate and Spring

re: "since Spring does not have explicit Tapestry-support"

Is it up to spring add tapestry support?
No.  Its is up to Tapestry to fix it brokenness?

Webwork is not mentioned in spring's lib/src, yet its spring support is
superior.

Right now tapestry's spring support is kind of half baked.  Pages cannot be
autowired from spring.
In addition, I don't think its possible today to do "prototype" proxy-ing of
Tapestry pages/actions via auto-proxy or explicitly, since spring cannot
create the abstract tapestry pages.  We will have to wait for the framework
to become more pojo based.

For now, I believe recommendation "explicitly" inject your singleton
services.  All the advice would be specified on the service.
If you don't want your services to be singletons, I am not sure if all that
lifecycle handling is complete yet.

Matt

 -Original Message-
From:   Mark [mailto:[EMAIL PROTECTED] 
Sent:   Sunday, May 28, 2006 3:28 AM
To: Tapestry users
Subject:Tapernate and Spring

Hi all,

In a recent different thread, the question about "Why use Tapernate if 
you use Spring" had come up as a side-question.

It seems that some (Hibernate-related) features of Tapernate are 
alternatives to equivalent Spring features, while others are more 
Tapestry-related features (e.g. the DataSqueezer) that are not available 
in Spring, since Spring does not have explicit Tapestry-support.

For some of the features listed on the feature-list at 
http://www.carmanconsulting.com/tapernate/ I am not sure which category 
they belong to:
- Is there anything in Spring that deals with the 
reattachment-strategies ("Persistence Strategies" on the list)?
- Is the "POJO-Rollback" functionality covered by Spring's Transaction 
facility?

Does anybody know if there is a document with a comparison of the 
various frameworks/add-on libs that offer persistence-support 
(Tapernate, Hivetranse, Honeycomb, [Spring]; are there more?) for 
Tapestry? Like a quick features and pros/cons comparison?

Thanks,

MARK



P.S. James, did you forget to list the transaction-strategies on the 
feature list, or did you leave it out intentionally?

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

This message, including any attachments, is intended only for the
recipient(s) 
named above. It may contain confidential and privileged information. If you
have 
received this communication in error, please notify the sender immediately
and 
destroy or delete the original message. Also, please be aware that if you
are not 
the intended recipient, any review, disclosure, copying, distribution or any

action or reliance based on this message is prohibited by law.  


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



RE: Tapernate and Spring

2006-06-06 Thread Payne, Matthew
re: "since Spring does not have explicit Tapestry-support"

Is it up to spring add tapestry support?
No.  Its is up to Tapestry to fix it brokenness?

Webwork is not mentioned in spring's lib/src, yet its spring support is 
superior.

Right now tapestry's spring support is kind of half baked.  Pages cannot be 
autowired from spring.
In addition, I don't think its possible today to do "prototype" proxy-ing of 
Tapestry pages/actions via auto-proxy or explicitly, since spring cannot create 
the abstract tapestry pages.  We will have to wait for the framework to become 
more pojo based.

For now, I believe recommendation "explicitly" inject your singleton services.  
All the advice would be specified on the service.
If you don't want your services to be singletons, I am not sure if all that 
lifecycle handling is complete yet.

Matt

 -Original Message-
From:   Mark [mailto:[EMAIL PROTECTED] 
Sent:   Sunday, May 28, 2006 3:28 AM
To: Tapestry users
Subject:Tapernate and Spring

Hi all,

In a recent different thread, the question about "Why use Tapernate if 
you use Spring" had come up as a side-question.

It seems that some (Hibernate-related) features of Tapernate are 
alternatives to equivalent Spring features, while others are more 
Tapestry-related features (e.g. the DataSqueezer) that are not available 
in Spring, since Spring does not have explicit Tapestry-support.

For some of the features listed on the feature-list at 
http://www.carmanconsulting.com/tapernate/ I am not sure which category 
they belong to:
- Is there anything in Spring that deals with the 
reattachment-strategies ("Persistence Strategies" on the list)?
- Is the "POJO-Rollback" functionality covered by Spring's Transaction 
facility?

Does anybody know if there is a document with a comparison of the 
various frameworks/add-on libs that offer persistence-support 
(Tapernate, Hivetranse, Honeycomb, [Spring]; are there more?) for 
Tapestry? Like a quick features and pros/cons comparison?

Thanks,

MARK



P.S. James, did you forget to list the transaction-strategies on the 
feature list, or did you leave it out intentionally?

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

This message, including any attachments, is intended only for the recipient(s) 
named above. It may contain confidential and privileged information. If you 
have 
received this communication in error, please notify the sender immediately and 
destroy or delete the original message. Also, please be aware that if you are 
not 
the intended recipient, any review, disclosure, copying, distribution or any 
action or reliance based on this message is prohibited by law.  


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



RE: Hibernate persisted data never makes it to DB

2006-06-06 Thread Payne, Matthew
+1
Don't use autocommit. You might wind up changed pojo's where you've changed a 
couple properties yet never called/save/update commit etc.

Just specify transactional advice on your persistence manager.

Shame there is no way to specify spring transactional advice on pages/actions 
like other frameworks can.  Hopefully the next version of tapestry will take 
away that limitation.

 -Original Message-
From:   Konstantin Iignatyev [mailto:[EMAIL PROTECTED] 
Sent:   Friday, May 26, 2006 1:46 AM
To: Tapestry users
Subject:Re: Hibernate persisted data never makes it to DB

autocommit is not the best approach. I suggest you to have a glance at 
the article for inspiration
http://www.onjava.com/pub/a/onjava/2005/05/18/swingxactions.html?page=1

Mark wrote:
> I added "hibernate.connection.autocommit=true" to my 
> hibernate.properties and that fixed it...
>
> So I assume Spring by default does no Session/TX handling, unless I 
> use the HibernateTransactionManager or do programmatic transaction 
> handling...
> One last question, to get back to Tapestry - is Spring's 
> OpenSessionInViewFilter  going to work 
> with Tapestry without limitations?
> I see all these posts about Tapernate and others, but I'm not sure 
> whether OpenSessionInViewFilter will work...
>
> Thanks,
>
> MARK
>
>
>
> Mark wrote:
>> Lutz Hühnken wrote:
>>> I asked for applicationContext.xml, and I get a mysql log... well,
>>> near enough :)
>> Sorry, I thought what I had found in the mysql log (the "set 
>> autocommit=0, no "commit" call and explicit "Rollback" call issued by 
>> Hibernate at shutdown) changed things a lot, but maybe not.
 From your last mail I understand you have the same problem if you use
>>> the mysql command line client. 
>> No, the command line INSERT does make it, the records just don't get 
>> picked up by Hibernate...
>>> So generally, your sql statements never get committed... which is
>>> weird, because by default, mysql starts new connections with
>>> autocommit enabled.
>> No, only the ones coming from my webapp do not get committed.
>>>
>>> If you connect to mysql from the command line and do
>>> select @@autocommit;
>>> what do you get?
>> I get "1"
>>> Oh, and although the classname you use for the jdbc driver still
>>> works, since the mysql connector/j provides backwards compatibility in
>>> this respect, nowadays people tend to use "com.mysql.jdbc.Driver"
>>> because of a name change four years ago.
>> Ok, thanks, I changed that.
>>
>> -
>> 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] 


-- 
Thanks,

Konstantin Ignatyev

http://www.kgionline.com





PS: If this is a typical day on planet earth, humans will add fifteen million 
tons of carbon to the atmosphere, destroy 115 square miles of tropical 
rainforest, create seventy-two miles of desert, eliminate between forty to one 
hundred species, erode seventy-one million tons of topsoil, add 2.700 tons of 
CFCs to the stratosphere, and increase their population by 263.000

Bowers, C.A.  The Culture of Denial:  
Why the Environmental Movement Needs a Strategy for Reforming Universities and 
Public Schools.  
New York:  State University of New York Press, 1997: (4) (5) (p.206)


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

This message, including any attachments, is intended only for the recipient(s) 
named above. It may contain confidential and privileged information. If you 
have 
received this communication in error, please notify the sender immediately and 
destroy or delete the original message. Also, please be aware that if you are 
not 
the intended recipient, any review, disclosure, copying, distribution or any 
action or reliance based on this message is prohibited by law.  


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



Re: Trails

2006-06-06 Thread Peter Svensson

Actually, my first trails (and tapestry) project was for a customer who had
an existing database with lots of odd relationships in it, and which I
managed to map one class at a time, by creating classes with the same name
as the tables and pasting the description into a comment. I didn't have to
make it complete but just did a couple of properties at a time by trial and
horror, and the pages just popped up, existing data and all. It was a
way-beyond-wow moment, to be sure.

Cheers,
PS

On 6/6/06, Kalle Korhonen <[EMAIL PROTECTED]> wrote:


On 6/6/06, Peter Svensson <[EMAIL PROTECTED]> wrote:
> Really, I can't see why you _souldn't_ use trails for everything and
then
> changes the bits you need to change. If you need to do heavy whiz-bang
> end-user pages, at least you'll have your administrative pages for free.

Second that, don't see too many reasons why not to use it. If you are
starting a new project from scratch (or at least without pre-existing,
fixed schema), it's a no-brainer to use Trails to compliment Tapestry
and eliminate/reduce the glue code you normally need to write for
persistence.

Kalle


> On 6/6/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:
> >
> > Hi everyone, I'm looking for feedback here, I planning of using Trails
to
> > help gain speed with my Tapestry 4.0 development. Somebody use it?
Should
> > I ? What are the pinfall ? What are your advise...
> >
> > Thanks for your feedback
> >
> >
> >
>
>

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




Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread Andreas Andreou

Are you using tapestry 4.0 or 4.0.2 ?

sp y wrote:
Hello, I have a page with AjaxForm and Tapestry Form which that doesnt 
work
well, which i believe it's the problems come from Tacos. I'm using 
Tacos 4
beta 1 with Tapestry 4, I just can't get it work with tacos beta 2, 
nor do i

have clear ideas why the simple tacos component page with tacos beta 3
doesnt work.

Anyone could help me? perhaps enlighten me with some changes to the tacos
beta 1's code?

Thank you very much for your attention and replies.


regards,



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



Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y

Hello, I have a page with AjaxForm and Tapestry Form which that doesnt work
well, which i believe it's the problems come from Tacos. I'm using Tacos 4
beta 1 with Tapestry 4, I just can't get it work with tacos beta 2, nor do i
have clear ideas why the simple tacos component page with tacos beta 3
doesnt work.

Anyone could help me? perhaps enlighten me with some changes to the tacos
beta 1's code?

Thank you very much for your attention and replies.


regards,


Re: Trails

2006-06-06 Thread Kalle Korhonen

On 6/6/06, Peter Svensson <[EMAIL PROTECTED]> wrote:

Really, I can't see why you _souldn't_ use trails for everything and then
changes the bits you need to change. If you need to do heavy whiz-bang
end-user pages, at least you'll have your administrative pages for free.


Second that, don't see too many reasons why not to use it. If you are
starting a new project from scratch (or at least without pre-existing,
fixed schema), it's a no-brainer to use Trails to compliment Tapestry
and eliminate/reduce the glue code you normally need to write for
persistence.

Kalle



On 6/6/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:
>
> Hi everyone, I'm looking for feedback here, I planning of using Trails to
> help gain speed with my Tapestry 4.0 development. Somebody use it? Should
> I ? What are the pinfall ? What are your advise...
>
> Thanks for your feedback
>
>
>




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



Re: Trails

2006-06-06 Thread Chris Nelson
Yes, the Trails pages are very customizable.  The
second article I did for java.net covers
customization.  We should probably move this
discussion over to the Trails mailing list.

--- Carl Pelletier <[EMAIL PROTECTED]> wrote:

> Ok, thanks, that help. Last question: Is it easy to
> change the UI after Trails generate the page ?
> Because, we have some specific needs. We won't use
> the simple layout Trails give after the generation.
> We need to modify the ui to reflect our needs.
> 
> Thanks !
> 
> - Original Message 
> From: Peter Svensson <[EMAIL PROTECTED]>
> To: Tapestry users ; Carl
> Pelletier <[EMAIL PROTECTED]>
> Sent: Tuesday, June 6, 2006 10:19:46 AM
> Subject: Re: Trails
> 
> I only use trails for my Tapestry-4 development.
> Mainly because I enjoyed the steep initial learning
> curve of tapestry and needed something to lean on.
> 
> The main reason I liked and like trails is because
> the ant scripts together with hibernate tools
> generate all tables in my MySQL database
> automatically from my POJOs. I just need to grok how
> to @annotate right, which in itself have been
> interresting, so all lookup tables, collections,
> relations, etc. gets done. 
> 
> Another big goodie is that trails have a default
> list, search and edit page for all POJOs, which are
> plain Tapestry html/page combos.  Also, there are
> ant/maven tasks to generate individual list or edit
> pages for POJOs. 
> 
> Then theres the fairly easy to use acegi security (I
> use a separate site to the same database for
> "unsecure" pages out of lazyness), with an ant task
> to add and another to initialize (create default
> tables for admin, etc.) 
> 
> Really, I can't see why you _souldn't_ use trails
> for everything and then changes the bits you need to
> change. If you need to do heavy whiz-bang end-user
> pages, at least you'll have your administrative
> pages for free. 
> 
> Cheers,
> PS
> 
> On 6/6/06, Carl Pelletier <[EMAIL PROTECTED]>
> wrote: Hi everyone, I'm looking for feedback here, I
> planning of using Trails to help gain speed with my
> Tapestry 4.0 development. Somebody use it? Should I
> ? What are the pinfall ? What are your advise...
> 
> Thanks for your feedback 
> 
> 
> 
> 
> 
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: OGNL in javascript

2006-06-06 Thread Jesse Kuhnert

You might also want to take a look at the @Script templating ability in
tapestry. It simplifies more complicated scenerios such as what you
describe.

http://jakarta.apache.org/tapestry/UsersGuide/script.html

On 6/6/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:


if, by any chance, you have a tacos jar in your classpath, you can take
advantage
of  the template binding, i.e.

onclick="template:javascript: document.getElementById('userId').value=${
user.Id}"

Also, you don't have to add "javascript:" in the onclick attribute.

Deon Visagie wrote:
> Thanks! It worked.
>
>
>
> -Original Message-
> From: Inge Solvoll [mailto:[EMAIL PROTECTED]
> Sent: 06 June 2006 02:26 PM
> To: Tapestry users
> Subject: Re: OGNL in javascript
>
> You have to escape the ('userId'), like this probably: (\'userId\')
>
> On 6/6/06, Deon Visagie <[EMAIL PROTECTED]> wrote:
>
>> Hi All
>>
>> I want to put an ognl expression in my onclick event of a link
>> e.g: onclick="ognl:'javascript: document.getElementById
('userId').value='
>> +
>> user.Id"
>>
>> but the above doesn't work. I have tried various variations with no
>> success.
>> I know onclick="ognl: user.Id" would print out the id but I need to
append
>> it to a string.
>>
>> Can it be done?
>>
>> Thanks,
>> Deon
>>
>>
>> -
>> 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]





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Trails

2006-06-06 Thread Carl Pelletier
Ok, thanks, that help. Last question: Is it easy to change the UI after Trails 
generate the page ? Because, we have some specific needs. We won't use the 
simple layout Trails give after the generation. We need to modify the ui to 
reflect our needs.

Thanks !

- Original Message 
From: Peter Svensson <[EMAIL PROTECTED]>
To: Tapestry users ; Carl Pelletier <[EMAIL 
PROTECTED]>
Sent: Tuesday, June 6, 2006 10:19:46 AM
Subject: Re: Trails

I only use trails for my Tapestry-4 development. Mainly because I enjoyed the 
steep initial learning curve of tapestry and needed something to lean on.

The main reason I liked and like trails is because the ant scripts together 
with hibernate tools generate all tables in my MySQL database automatically 
from my POJOs. I just need to grok how to @annotate right, which in itself have 
been interresting, so all lookup tables, collections, relations, etc. gets 
done. 

Another big goodie is that trails have a default list, search and edit page for 
all POJOs, which are plain Tapestry html/page combos.  Also, there are 
ant/maven tasks to generate individual list or edit pages for POJOs. 

Then theres the fairly easy to use acegi security (I use a separate site to the 
same database for "unsecure" pages out of lazyness), with an ant task to add 
and another to initialize (create default tables for admin, etc.) 

Really, I can't see why you _souldn't_ use trails for everything and then 
changes the bits you need to change. If you need to do heavy whiz-bang end-user 
pages, at least you'll have your administrative pages for free. 

Cheers,
PS

On 6/6/06, Carl Pelletier <[EMAIL PROTECTED]> wrote: Hi everyone, I'm looking 
for feedback here, I planning of using Trails to help gain speed with my 
Tapestry 4.0 development. Somebody use it? Should I ? What are the pinfall ? 
What are your advise...

Thanks for your feedback 








Re: Trails

2006-06-06 Thread Peter Svensson

I only use trails for my Tapestry-4 development. Mainly because I enjoyed
the steep initial learning curve of tapestry and needed something to lean
on.

The main reason I liked and like trails is because the ant scripts together
with hibernate tools generate all tables in my MySQL database automatically
from my POJOs. I just need to grok how to @annotate right, which in itself
have been interresting, so all lookup tables, collections, relations, etc.
gets done.

Another big goodie is that trails have a default list, search and edit page
for all POJOs, which are plain Tapestry html/page combos.  Also, there are
ant/maven tasks to generate individual list or edit pages for POJOs.

Then theres the fairly easy to use acegi security (I use a separate site to
the same database for "unsecure" pages out of lazyness), with an ant task to
add and another to initialize (create default tables for admin, etc.)

Really, I can't see why you _souldn't_ use trails for everything and then
changes the bits you need to change. If you need to do heavy whiz-bang
end-user pages, at least you'll have your administrative pages for free.

Cheers,
PS

On 6/6/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:


Hi everyone, I'm looking for feedback here, I planning of using Trails to
help gain speed with my Tapestry 4.0 development. Somebody use it? Should
I ? What are the pinfall ? What are your advise...

Thanks for your feedback





RE: DirectLink listening to session state method

2006-06-06 Thread Schulte Marcus
Probably you need a getter on your ASO returning an IActionListener-instance
which calls your method.
Then you can say


with :
class YourStateObjectClass {
IActionListener getSomeMethod() {
return new IActionListener() {
 ...
}
  }

> -Original Message-
> From: Willem van Asperen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 06, 2006 3:35 PM
> To: tapestry-user@jakarta.apache.org
> Subject: DirectLink listening to session state method
> 
> 
> Hi All,
> 
> Is there a  way to create an @DirectLink that listens to a 
> method on a state object that I have in my session?
> 
> What I would like to do is:
> 
>  parameters="ognl:somevalue">
> 
> Here the someMethod method returns a string with the name of 
> the 'next' page.
> 
> Thanks,
> 
> Willem van Asperen
> 
> PA Consulting Group
> Innovation. Responsiveness. Delivery.
> Coltbaan 33
> P.O. Box 1043
> 3430 BA Nieuwegein
> The Netherlands
> http://www.paconsulting.com/
> 
> DISCLAIMER:  This document should only be read by those 
> persons to whom it is addressed and is not intended to be 
> relied upon by any person without subsequent written 
> confirmation of its contents.  PA Consulting Group disclaims 
> all responsibility and accepts no liability (including in 
> negligence) for the consequences of any person acting, or 
> refraining from acting, on such information prior to the 
> receipt by those persons of subsequent written confirmation.  
> If you have received this e-mail message in error, please 
> notify us immediately by telephone on +31302829600.  Please 
> also destroy and delete the message from your computer.  Any 
> form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and/or publication of this e-mail 
> message is strictly prohibited.
> 
> 
> -
> 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]



Trails

2006-06-06 Thread Carl Pelletier
Hi everyone, I'm looking for feedback here, I planning of using Trails to help 
gain speed with my Tapestry 4.0 development. Somebody use it? Should I ? What 
are the pinfall ? What are your advise...

Thanks for your feedback



DirectLink listening to session state method

2006-06-06 Thread Willem van Asperen
Hi All,

Is there a  way to create an @DirectLink that listens to a method on a state 
object that I have in my session?

What I would like to do is:



Here the someMethod method returns a string with the name of the 'next' page.

Thanks,

Willem van Asperen

PA Consulting Group
Innovation. Responsiveness. Delivery.
Coltbaan 33
P.O. Box 1043
3430 BA Nieuwegein
The Netherlands
http://www.paconsulting.com/

DISCLAIMER:  This document should only be read by those persons to whom it is 
addressed and is not intended to be relied upon by any person without 
subsequent written confirmation of its contents.  PA Consulting Group disclaims 
all responsibility and accepts no liability (including in negligence) for the 
consequences of any person acting, or refraining from acting, on such 
information prior to the receipt by those persons of subsequent written 
confirmation.  If you have received this e-mail message in error, please notify 
us immediately by telephone on +31302829600.  Please also destroy and delete 
the message from your computer.  Any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail message is strictly prohibited.


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



Re: Using @tacos:Refresh on a component

2006-06-06 Thread Andreas Andreou

hmmm...
perhaps Refresh doesn't take into account the state of the cycle,
i.e. if it's rewinding
Look for a new 'nightly' in a few hours

Denis Souza wrote:

Hi, I'm having some trouble with the tacos Refresh component.

 


I have a component that needs to refresh a list of images on occasion, so
I've inserted the following code in the component's html file.

 




function refreshImageList() {



}



 


The component is used in one of my pages. Once it's running, whenever I
click on any of the page's submit buttons (which are all AjaxSubmit), I get
this exception:

 

org.apache.hivemind.ApplicationRuntimeException 


Component product/ProductEditPage/$data$ImageBrowser.$Refresh requires
rendering support, but no PageRenderSupport object has been stored into the
request cycle. This object is typically provided by a Body component. You
should add a Body component to your template.

 


However, I DO have a Body component on my page. Not only that, if I take
that javascript function and insert it directly into the page's html file
instead of the component's html, it works perfectly. I could leave the code
on the page but it wouldn't be a very clean solution.

Any ideas on why this is happening? I tried it with Tacos 4 beta 2 and with
the latest bleeding-edge tacos 4 beta-3-20060601-0613.

 


Thanks,
Denis Souza

 



  


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



Re: OGNL in javascript

2006-06-06 Thread Andreas Andreou
if, by any chance, you have a tacos jar in your classpath, you can take 
advantage

of  the template binding, i.e.

onclick="template:javascript: 
document.getElementById('userId').value=${user.Id}"

Also, you don't have to add "javascript:" in the onclick attribute.

Deon Visagie wrote:

Thanks! It worked.



-Original Message-
From: Inge Solvoll [mailto:[EMAIL PROTECTED] 
Sent: 06 June 2006 02:26 PM

To: Tapestry users
Subject: Re: OGNL in javascript

You have to escape the ('userId'), like this probably: (\'userId\')

On 6/6/06, Deon Visagie <[EMAIL PROTECTED]> wrote:
  

Hi All

I want to put an ognl expression in my onclick event of a link
e.g: onclick="ognl:'javascript: document.getElementById('userId').value='
+
user.Id"

but the above doesn't work. I have tried various variations with no
success.
I know onclick="ognl: user.Id" would print out the id but I need to append
it to a string.

Can it be done?

Thanks,
Deon


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



Re: getting rid of cycle.activate

2006-06-06 Thread Andreas Bulling
On 06. Jun 2006 - 16:03:27, Andreas Andreou wrote:
| That won't do, he's in 3.0.3...

I thought he has switched to T4 as he said "I've been using..."
@Daniel: Sorry, in this case just forget what I've said. ;)

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



RE: OGNL in javascript

2006-06-06 Thread Deon Visagie
Thanks! It worked.



-Original Message-
From: Inge Solvoll [mailto:[EMAIL PROTECTED] 
Sent: 06 June 2006 02:26 PM
To: Tapestry users
Subject: Re: OGNL in javascript

You have to escape the ('userId'), like this probably: (\'userId\')

On 6/6/06, Deon Visagie <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I want to put an ognl expression in my onclick event of a link
> e.g: onclick="ognl:'javascript: document.getElementById('userId').value='
> +
> user.Id"
>
> but the above doesn't work. I have tried various variations with no
> success.
> I know onclick="ognl: user.Id" would print out the id but I need to append
> it to a string.
>
> Can it be done?
>
> Thanks,
> Deon
>
>
> -
> 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]



Re: Tapernate Squeezer...

2006-06-06 Thread Andreas Andreou

James Carman wrote:

Actually, I like Adreas Androu's idea.  He said (from the developers list):

"I think I would use the entire entity name enhanced with an optional
properties file that would allow users to define substitutions."

However, I'm going to go one better.  Instead of using a properties file,
I'll create a configuration point for the overrides.  That's the "HiveMind
Way."
  

hehe! Actually I initially meant to write:
"I think I would use the entire entity name enhanced with substitutions"
feeling that you'll make out the missing parts

When I said "use the hashCode()", I meant to use the hashCode() of the
entity name (a String) itself, not of the entity.  


-Original Message-
From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Bulling
Sent: Tuesday, June 06, 2006 8:24 AM
To: Tapestry users
Subject: Re: Tapernate Squeezer...

Hi James,

I'd vote for the hashCode() approach, why:

1) It's the approach already used and widely accepted (for example
in Hibernate)

2) using Hibernate (which is what Tapernate is dedicated to) you
are advised to implement hashCode() and equals() anyway (according
to the Hibernate homepage) so it's no additional expense to use
it for Tapernate.

Just my two cents...
  Andreas

On 06. Jun 2006 - 08:08:21, James Carman wrote:
| For those of you who are using Tapernate (and those of you who have done
| something similar in the past), I have a question for you.  Currently, the
| Tapernate entity squeezer uses an abbreviation for the class name
(basically
| an integer).  However, I was thinking that this might not be a good thing
| for external links.  What would happen if the application is restarted and
| someone has bookmarked an external link?  So, I need to come up with a
| reliable/repeatable way to "shrink" the entity name down to a small
string.
| Now, the situation gets even trickier when you consider the fact that your
| application may add entity classes between releases.  Therefore, I can't
| just sort the entity class names and then assign them a number (their
index
| in a list).  I *really* don't want the entire entity name in the URLs.
That
| would look kind of cheesy.  The way I see it, there are some options...
| 
| 1.  Use a message digest of the entity name.  The message digests would

all
| be the same length, so we wouldn't have to worry about the URLs "growing"
| when the entity name grew.  But, there *is* the chance for digest
collisions
| (digest of entity name A is the same as digest of entity name B).
| 
| 2.  Use the hashCode() of the entity name Strings.  Again, we've got the

| possibility for collisions.
| 
| 3.  Just use the "simple" entity name (the part of the name after the last

| '.').  I don't think Hibernate requires that you have unique "simple"
names
| for your entity classes.  In practice, this is typically not a problem.
| But, in general, it's not a robust solution.
| 
| 4.  Just use the entire entity name and don't worry about all of this!

| Users can override it if they wish and how they wish.
| 
| I will be creating a service point which does the translation to/from the

| entity name abbreviation and users can override it if they want.  Which of
| these (or if you have other ideas) would be the best "default", though?
The
| entity squeezer will detect when there is a collision and either throw an
| exception or print an error message to the logs (haven't decided yet) to
let
| you know that you need to come up with a better solution for entity name
| abbreviation.
| 
| James


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



Re: getting rid of cycle.activate

2006-06-06 Thread Andreas Andreou

That won't do, he's in 3.0.3...

Perhaps you can try the code described here:
http://wiki.apache.org/tapestry/EasyBrowserRedirection

It will save you a few keystrokes

Andreas Bulling wrote:

Hi Daniel,

you can make your listener methods return the desired IPage directly...
Perhaps thats a solution to your problem?

hth,
  Andreas

On 06. Jun 2006 - 12:13:34, Daniel M Garland wrote:
| Hi all,
| 
| I've been using Tapestry 3.03, and I need help getting rid of 
| cycle.activate, because it is messing up my URL structure.
| 
| When I want to direct a user to a page, I might use cycle.activate, for 
| instance when i've completed a login procedure or inside a direct link. 
| Its very convenient to write java code like

| IPage mypage = cycle.getPage("mypage");
| cycle.activate(mypage);
| 
| Trouble is, that the url for this page is now somthing like
| 
| /app?service=direct/1/Someotherpage/$DirectLink$0
| 
| so I might have many URLs that point to the one page. Perhaps I could 
| use RedirectException, but would I then have to write a lot of code to 
| get the engine, get the service, get the link and finally throw the URL? 
| seems a lot of work. Whats the best way of doing it?
| 
| Thanks for taking the time to read this
| 
| -- 
| Dan Garland

| 
| [EMAIL PROTECTED]
| office: +44 (0) 207 803 1947
| mob: +44 (0) 7979 770053
| icq: 120963437
| aim: dmgarland1767

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



Re: getting rid of cycle.activate

2006-06-06 Thread Ivano Pagano

What you're suggesting is only available as per Tapestry 4.0+

For tap 3.0.x listeners methods return void

Andreas Bulling wrote:


Hi Daniel,

you can make your listener methods return the desired IPage directly...
Perhaps thats a solution to your problem?

hth,
 Andreas

On 06. Jun 2006 - 12:13:34, Daniel M Garland wrote:
| Hi all,
| 
| I've been using Tapestry 3.03, and I need help getting rid of 
| cycle.activate, because it is messing up my URL structure.
| 
| When I want to direct a user to a page, I might use cycle.activate, for 
| instance when i've completed a login procedure or inside a direct link. 
| Its very convenient to write java code like

| IPage mypage = cycle.getPage("mypage");
| cycle.activate(mypage);
| 
| Trouble is, that the url for this page is now somthing like
| 
| /app?service=direct/1/Someotherpage/$DirectLink$0
| 
| so I might have many URLs that point to the one page. Perhaps I could 
| use RedirectException, but would I then have to write a lot of code to 
| get the engine, get the service, get the link and finally throw the URL? 
| seems a lot of work. Whats the best way of doing it?
| 
| Thanks for taking the time to read this
| 
| -- 
| Dan Garland

| 
| [EMAIL PROTECTED]
| office: +44 (0) 207 803 1947
| mob: +44 (0) 7979 770053
| icq: 120963437
| aim: dmgarland1767

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



 


--
Ivano pagano



**

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



RE: Tapernate Squeezer...

2006-06-06 Thread James Carman
Actually, I like Adreas Androu's idea.  He said (from the developers list):

"I think I would use the entire entity name enhanced with an optional
properties file that would allow users to define substitutions."

However, I'm going to go one better.  Instead of using a properties file,
I'll create a configuration point for the overrides.  That's the "HiveMind
Way."

When I said "use the hashCode()", I meant to use the hashCode() of the
entity name (a String) itself, not of the entity.  

-Original Message-
From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Bulling
Sent: Tuesday, June 06, 2006 8:24 AM
To: Tapestry users
Subject: Re: Tapernate Squeezer...

Hi James,

I'd vote for the hashCode() approach, why:

1) It's the approach already used and widely accepted (for example
in Hibernate)

2) using Hibernate (which is what Tapernate is dedicated to) you
are advised to implement hashCode() and equals() anyway (according
to the Hibernate homepage) so it's no additional expense to use
it for Tapernate.

Just my two cents...
  Andreas

On 06. Jun 2006 - 08:08:21, James Carman wrote:
| For those of you who are using Tapernate (and those of you who have done
| something similar in the past), I have a question for you.  Currently, the
| Tapernate entity squeezer uses an abbreviation for the class name
(basically
| an integer).  However, I was thinking that this might not be a good thing
| for external links.  What would happen if the application is restarted and
| someone has bookmarked an external link?  So, I need to come up with a
| reliable/repeatable way to "shrink" the entity name down to a small
string.
| Now, the situation gets even trickier when you consider the fact that your
| application may add entity classes between releases.  Therefore, I can't
| just sort the entity class names and then assign them a number (their
index
| in a list).  I *really* don't want the entire entity name in the URLs.
That
| would look kind of cheesy.  The way I see it, there are some options...
| 
| 1.  Use a message digest of the entity name.  The message digests would
all
| be the same length, so we wouldn't have to worry about the URLs "growing"
| when the entity name grew.  But, there *is* the chance for digest
collisions
| (digest of entity name A is the same as digest of entity name B).
| 
| 2.  Use the hashCode() of the entity name Strings.  Again, we've got the
| possibility for collisions.
| 
| 3.  Just use the "simple" entity name (the part of the name after the last
| '.').  I don't think Hibernate requires that you have unique "simple"
names
| for your entity classes.  In practice, this is typically not a problem.
| But, in general, it's not a robust solution.
| 
| 4.  Just use the entire entity name and don't worry about all of this!
| Users can override it if they wish and how they wish.
| 
| I will be creating a service point which does the translation to/from the
| entity name abbreviation and users can override it if they want.  Which of
| these (or if you have other ideas) would be the best "default", though?
The
| entity squeezer will detect when there is a collision and either throw an
| exception or print an error message to the logs (haven't decided yet) to
let
| you know that you need to come up with a better solution for entity name
| abbreviation.
| 
| James

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



Re: getting rid of cycle.activate

2006-06-06 Thread Andreas Bulling
Hi Daniel,

you can make your listener methods return the desired IPage directly...
Perhaps thats a solution to your problem?

hth,
  Andreas

On 06. Jun 2006 - 12:13:34, Daniel M Garland wrote:
| Hi all,
| 
| I've been using Tapestry 3.03, and I need help getting rid of 
| cycle.activate, because it is messing up my URL structure.
| 
| When I want to direct a user to a page, I might use cycle.activate, for 
| instance when i've completed a login procedure or inside a direct link. 
| Its very convenient to write java code like
| IPage mypage = cycle.getPage("mypage");
| cycle.activate(mypage);
| 
| Trouble is, that the url for this page is now somthing like
| 
| /app?service=direct/1/Someotherpage/$DirectLink$0
| 
| so I might have many URLs that point to the one page. Perhaps I could 
| use RedirectException, but would I then have to write a lot of code to 
| get the engine, get the service, get the link and finally throw the URL? 
| seems a lot of work. Whats the best way of doing it?
| 
| Thanks for taking the time to read this
| 
| -- 
| Dan Garland
| 
| [EMAIL PROTECTED]
| office: +44 (0) 207 803 1947
| mob: +44 (0) 7979 770053
| icq: 120963437
| aim: dmgarland1767

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



Re: OGNL in javascript

2006-06-06 Thread Inge Solvoll

You have to escape the ('userId'), like this probably: (\'userId\')

On 6/6/06, Deon Visagie <[EMAIL PROTECTED]> wrote:


Hi All

I want to put an ognl expression in my onclick event of a link
e.g: onclick="ognl:'javascript: document.getElementById('userId').value='
+
user.Id"

but the above doesn't work. I have tried various variations with no
success.
I know onclick="ognl: user.Id" would print out the id but I need to append
it to a string.

Can it be done?

Thanks,
Deon


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




Re: OGNL in javascript

2006-06-06 Thread Christian Haselbach
Quoting Deon Visagie <[EMAIL PROTECTED]>:

> I want to put an ognl expression in my onclick event of a link
> e.g: onclick="ognl:'javascript: document.getElementById('userId').value=' +
> user.Id"

I'd say there is a syntax error with the single quotes, which occure
in the getElementById call. If escaping these does not work you can
try something like onclick="ognl:makeJavascript()" and implement
String makeJavascript() in the coressponding class to return the
desired string.

Regards,
Christian

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



Re: Tapernate Squeezer...

2006-06-06 Thread Andreas Bulling
Hi James,

I'd vote for the hashCode() approach, why:

1) It's the approach already used and widely accepted (for example
in Hibernate)

2) using Hibernate (which is what Tapernate is dedicated to) you
are advised to implement hashCode() and equals() anyway (according
to the Hibernate homepage) so it's no additional expense to use
it for Tapernate.

Just my two cents...
  Andreas

On 06. Jun 2006 - 08:08:21, James Carman wrote:
| For those of you who are using Tapernate (and those of you who have done
| something similar in the past), I have a question for you.  Currently, the
| Tapernate entity squeezer uses an abbreviation for the class name (basically
| an integer).  However, I was thinking that this might not be a good thing
| for external links.  What would happen if the application is restarted and
| someone has bookmarked an external link?  So, I need to come up with a
| reliable/repeatable way to "shrink" the entity name down to a small string.
| Now, the situation gets even trickier when you consider the fact that your
| application may add entity classes between releases.  Therefore, I can't
| just sort the entity class names and then assign them a number (their index
| in a list).  I *really* don't want the entire entity name in the URLs.  That
| would look kind of cheesy.  The way I see it, there are some options...
| 
| 1.  Use a message digest of the entity name.  The message digests would all
| be the same length, so we wouldn't have to worry about the URLs "growing"
| when the entity name grew.  But, there *is* the chance for digest collisions
| (digest of entity name A is the same as digest of entity name B).
| 
| 2.  Use the hashCode() of the entity name Strings.  Again, we've got the
| possibility for collisions.
| 
| 3.  Just use the "simple" entity name (the part of the name after the last
| '.').  I don't think Hibernate requires that you have unique "simple" names
| for your entity classes.  In practice, this is typically not a problem.
| But, in general, it's not a robust solution.
| 
| 4.  Just use the entire entity name and don't worry about all of this!
| Users can override it if they wish and how they wish.
| 
| I will be creating a service point which does the translation to/from the
| entity name abbreviation and users can override it if they want.  Which of
| these (or if you have other ideas) would be the best "default", though?  The
| entity squeezer will detect when there is a collision and either throw an
| exception or print an error message to the logs (haven't decided yet) to let
| you know that you need to come up with a better solution for entity name
| abbreviation.
| 
| James

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



OGNL in javascript

2006-06-06 Thread Deon Visagie
Hi All

I want to put an ognl expression in my onclick event of a link
e.g: onclick="ognl:'javascript: document.getElementById('userId').value=' +
user.Id"

but the above doesn't work. I have tried various variations with no success.
I know onclick="ognl: user.Id" would print out the id but I need to append
it to a string.

Can it be done?

Thanks,
Deon


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



Tapernate Squeezer...

2006-06-06 Thread James Carman
For those of you who are using Tapernate (and those of you who have done
something similar in the past), I have a question for you.  Currently, the
Tapernate entity squeezer uses an abbreviation for the class name (basically
an integer).  However, I was thinking that this might not be a good thing
for external links.  What would happen if the application is restarted and
someone has bookmarked an external link?  So, I need to come up with a
reliable/repeatable way to "shrink" the entity name down to a small string.
Now, the situation gets even trickier when you consider the fact that your
application may add entity classes between releases.  Therefore, I can't
just sort the entity class names and then assign them a number (their index
in a list).  I *really* don't want the entire entity name in the URLs.  That
would look kind of cheesy.  The way I see it, there are some options...

1.  Use a message digest of the entity name.  The message digests would all
be the same length, so we wouldn't have to worry about the URLs "growing"
when the entity name grew.  But, there *is* the chance for digest collisions
(digest of entity name A is the same as digest of entity name B).

2.  Use the hashCode() of the entity name Strings.  Again, we've got the
possibility for collisions.

3.  Just use the "simple" entity name (the part of the name after the last
'.').  I don't think Hibernate requires that you have unique "simple" names
for your entity classes.  In practice, this is typically not a problem.
But, in general, it's not a robust solution.

4.  Just use the entire entity name and don't worry about all of this!
Users can override it if they wish and how they wish.

I will be creating a service point which does the translation to/from the
entity name abbreviation and users can override it if they want.  Which of
these (or if you have other ideas) would be the best "default", though?  The
entity squeezer will detect when there is a collision and either throw an
exception or print an error message to the logs (haven't decided yet) to let
you know that you need to come up with a better solution for entity name
abbreviation.

James



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



Re: Hivemind SpringLookupFactory

2006-06-06 Thread Stephane Decleire
Concerning the creation of an ASO, i found a lot of samples using the 
 implementation but none with the  
wich seems to be unique way to access Spring ...


Regarding the [EMAIL PROTECTED] annotation, perhaps i've missed something 
but i don't know how it can be used in my Visit bean wich is a POJO and 
not an abstract subclass of the Tapestry hierarchy ?


Andreas Bulling a écrit :

On 06. Jun 2006 - 12:53:04, Andreas Bulling wrote:
| | So i send here my SOS !
| | Has anybody already used the SpringLookupFactory and could show me a 
| | configuration sample ?
| 
| For the Visit ASO you should find examples easily on this list...
| 
| Concerning the LookupFactory I'm not sure if you really need

| it. AFAIK if you use Howards tapestry-spring jar you can just inject
| your bean with @InjectObject("spring:visit"). But please correct me if I'm 
wrong...

Should read spring:your_dao for sure ;)

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

  


--
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06



getting rid of cycle.activate

2006-06-06 Thread Daniel M Garland

Hi all,

I've been using Tapestry 3.03, and I need help getting rid of 
cycle.activate, because it is messing up my URL structure.


When I want to direct a user to a page, I might use cycle.activate, for 
instance when i've completed a login procedure or inside a direct link. 
Its very convenient to write java code like

IPage mypage = cycle.getPage("mypage");
cycle.activate(mypage);

Trouble is, that the url for this page is now somthing like

/app?service=direct/1/Someotherpage/$DirectLink$0

so I might have many URLs that point to the one page. Perhaps I could 
use RedirectException, but would I then have to write a lot of code to 
get the engine, get the service, get the link and finally throw the URL? 
seems a lot of work. Whats the best way of doing it?


Thanks for taking the time to read this

--
Dan Garland

[EMAIL PROTECTED]
office: +44 (0) 207 803 1947
mob: +44 (0) 7979 770053
icq: 120963437
aim: dmgarland1767


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


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



Re: Hivemind SpringLookupFactory

2006-06-06 Thread Andreas Bulling
On 06. Jun 2006 - 12:53:04, Andreas Bulling wrote:
| | So i send here my SOS !
| | Has anybody already used the SpringLookupFactory and could show me a 
| | configuration sample ?
| 
| For the Visit ASO you should find examples easily on this list...
| 
| Concerning the LookupFactory I'm not sure if you really need
| it. AFAIK if you use Howards tapestry-spring jar you can just inject
| your bean with @InjectObject("spring:visit"). But please correct me if I'm 
wrong...

Should read spring:your_dao for sure ;)

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



Re: Tapestry 4 / Acegi integration examples

2006-06-06 Thread Andreas Bulling
I'd also be very interested in such an example... ;-)

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



Re: Hivemind SpringLookupFactory

2006-06-06 Thread Andreas Bulling
| So i send here my SOS !
| Has anybody already used the SpringLookupFactory and could show me a 
| configuration sample ?

For the Visit ASO you should find examples easily on this list...

Concerning the LookupFactory I'm not sure if you really need
it. AFAIK if you use Howards tapestry-spring jar you can just inject
your bean with @InjectObject("spring:visit"). But please correct me if I'm 
wrong...

-> http://howardlewisship.com/tapestry-javaforge/tapestry-spring/

HTH,
  Andreas

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



Hivemind SpringLookupFactory

2006-06-06 Thread Stephane Decleire

Hi all,

I need to inject a Spring bean (wich is a DAO) in my Tapestry Visit 
session object.
After some readings, the solution seems to be the declaration of a new 
ASO in Hivemind for the Visit object and the injection of my Spring bean 
in this new ASO using the Hivemind SpringLookupFactory.
But, as a newbie in Hivemind, i did not success to make this 
configuration and did not find any sample on the web using 
SpringLookupFactory.


So i send here my SOS !
Has anybody already used the SpringLookupFactory and could show me a 
configuration sample ?


Thanks in advance.

--
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06