RE: Tapestry to generate mails ?

2006-05-03 Thread andyhot
ils ? > > I had this related link over at my delicious ( > http://del.icio.us/andyhot/tapestry ). > It's entitled 'Sending Tapestry-generated email with Spring' and it's at: > http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html > > > > &g

Re: Tapestry to generate mails ?

2006-05-03 Thread andyhot
I had this related link over at my delicious ( http://del.icio.us/andyhot/tapestry ). It's entitled 'Sending Tapestry-generated email with Spring' and it's at: http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html >From Stephane Decleire <[EMAIL PROTEC

Re: Maintaining a bookmarkable URL after submitting a form

2006-04-30 Thread andyhot
See http://svn.apache.org/repos/asf/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/engine/encoders/PageServiceEncoder.java for an example. Implementing both decode and encode of ServiceEncoder is all it takes. Perhaps you might also like to declare your encoder to be befor

Re: Using a Tacos:Editor like a plain old submitable input

2006-04-25 Thread andyhot
You're welcome to attach any code in the related issue http://tacoscomponents.jot.com/BugReporter/Bug110 We have 2 ways to implement this: - Add a new component, let's say RichTextArea which will be like yours + translators and validators :) - Add this behaviour to Editor and add conditional logi

Re: Navigate in the object graph in tapestry!!!

2006-04-24 Thread andyhot
I remember last year, someone wanted to do the same thing... and he succeeded by patching ognl. Looking at the link you provided, it seems that one can simply do a OgnlRuntime.setNullHandler. Have you tried that? However, an additional configuration point for this ognl setting would be nice... A

Re: RestartService redirect URL

2006-04-21 Thread andyhot
Yep, it's used by LinkFactory... Better then add a redirect filter or create your own Restart service. FYI, i just looked at tapestry's configurations in META-INF >From D&J Gredler <[EMAIL PROTECTED]>: > Thanks for the info. > > I'm a little worried that changing org.apache.tapestry.servlet-pat

Re: Using a Tacos:Editor like a plain old submitable input

2006-04-20 Thread andyhot
I remember i had lots of issues when i originally created Editor. Firefox would usually crash if the Editor was replacing a TextArea. So i decided to just make it work as it now is. Of course that's 6 months ago and of course dojo has changed, so i'll give it a look again - just add a bug report

Re: RestartService redirect URL

2006-04-20 Thread andyhot
RestartService redirects to the path specified by org.apache.tapestry.servlet-path Either change that, or use a redirect filter, i.e. from /app to /Home.html >From D&J Gredler <[EMAIL PROTECTED]>: > Hi, > > I'm using friendly URLs and have removed the mapping in web.xml to /app (so > ugly URL

Re: Refresh an AjaxForm

2006-04-19 Thread andyhot
Can't help much for now but you can dig in https://svn.sourceforge.net/svnroot/tacos/trunk/src/java/net/sf/tacos/ajax/components/Form.js and maybe find a solution. Tacos replaces Tapestrys default form handlers, etc... >From Cluster <[EMAIL PROTECTED]>: > Hi, > > I'm working with an AjaxFor

Re: Disposing session ASOs but not destroying the session

2006-04-13 Thread andyhot
A remove method would be nice... But i dont see where the NPE would be thrown... >From Leonardo Quijano Vincenzi <[EMAIL PROTECTED]>: > Indeed, just found out about that. But it's not fool-proof, because if > your ASO implements SessionStoreOptimized then you get an NPE. > I think a RFE is in or

Re: Disposing session ASOs but not destroying the session

2006-04-13 Thread andyhot
I believe you can inject the SessionScopeManager and tell it to store null for the given aso... something like getSessionScopeManager().store("myAso", null) >From Leonardo Quijano Vincenzi <[EMAIL PROTECTED]>: > I think the subject is fairly thorough: > > How do I dispose a session-scoped ASO wi

Re: injecting mock services at test time

2006-04-10 Thread andyhot
Use Tapestry's Creator class (in org.apache.tapestry.test) to instanciate pages and components to be tested. Creator allows passing mock instances of a component's properties. >From Rob Dennett <[EMAIL PROTECTED]>: > I have a listener like this: > > @InjectService(�FooService�) > public abstra

Re: Tacos:Autocompleter doesn't inside Tacos:AjaxForm

2006-04-08 Thread andyhot
You've probably stepped into "Bug70 - Autocompleter doesn't work in AjaxForm unless direct=true" http://tacoscomponents.jot.com/BugReporter/Bug70 which is fixed in trunk... >From Pedro Viegas <[EMAIL PROTECTED]>: > Has anybody got this issue? > I've got a tacos:autocompleter working perfectly ins

Re: Tacos:DatePicker shows when clicks wherever

2006-04-06 Thread andyhot
You are using the old tacos:DatePicker. It has been replaced in SVN by a newer version - try a nightly build or wait for beta-2 >From Jorge Quiroga <[EMAIL PROTECTED]>: > Hello: > > I modify a component that select a block that has some components. One > of the blocks render a checkbox a taco

Re: FATAL: bad srcObj for srcFunc: onclick (tacos)

2006-04-04 Thread andyhot
Is it possible to better define "sometimes"? Or perhaps show some example code? Could this be related to http://tacoscomponents.jot.com/BugReporter/Bug95 ? >From linuja <[EMAIL PROTECTED]>: > tacos4-beta-2 (also tacos4-beta-1) : > > when using the tacos:AjaxLinkSubmit, sometimes it doesn't work

Re: Shadow parameter crashing IE. Anybody have a workaround?

2006-04-02 Thread andyhot
You posted the bug report at dojo not tacos. Tacos bugtracker is at: http://tacoscomponents.jot.com/BugReporter/ In general you should use the dojo files contained in tacos demo/docroot/js/dojo . They're synced with dojo's svn every now and then. So, see if you still have problems with those file

Re: Tacos Autocompleter: returning another an ID other then the listed string

2006-04-01 Thread andyhot
Yea, the autocompleter is not really a replacement for but for But i think there are ways to make it work like a select... In your autocompleter, you'll need to use : - a custom listItemRenderer that also outputs ids for every entry (they could be hidden from the user, so instead of data1data

Re: Upgrading from 3.0.3 to 4.0.1 in AppFuse

2006-04-01 Thread andyhot
Yes, Leonardo is so correct here... One cannot throw exceptions (even redirectexception) in the exception page. So, perhaps use directly : >From Leonardo Quijano Vincenzi <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > 1) Why not have a custom StaleSession.html page? > > Its pageBeginRende

Re: Upgrading from 3.0.3 to 4.0.1 in AppFuse

2006-03-31 Thread andyhot
>From Matt Raible <[EMAIL PROTECTED]>: > On 3/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 1) Why not have a custom StaleSession.html page? > > Its pageBeginRender could redirect to the login form, couldn't it? > > Yes it could. I'm assuming the code needed to override this page is >

Re: Upgrading from 3.0.3 to 4.0.1 in AppFuse

2006-03-31 Thread andyhot
1) Why not have a custom StaleSession.html page? Its pageBeginRender could redirect to the login form, couldn't it? 2) Remove the servlet mapping 3) For cookies, see org.apache.tapestry.services.CookieSource and inject it using service:tapestry.request.CookieSource For redirects, see 5) 4) ...

Re: Creating array of Validators with String

2006-03-30 Thread andyhot
Also look at: http://svn.apache.org/repos/asf/jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/validator/ValidatorFactoryImpl.java >From Mike Snare <[EMAIL PROTECTED]>: > If the validation is specified in your xml, parse the data into data > structures that make sense to

Re: Informal parameters in component html template

2006-03-30 Thread andyhot
.html is .page has >From Aj Gregory <[EMAIL PROTECTED]>: > Sorry if my question was confusing... To clarify I'd like to do > something like this in my component .html: > > > > > > > Basically the same thing that would happen if I was rendering in java with: > > writer.begin(

Re: getMessages().format(key, Object[]) not working

2006-03-29 Thread andyhot
You forgot to cast to Object[] return getMessages().format(key, (Object[])arg); Also, return getMessages().format(key, new Object[] { arg }); can become return getMessages().format(key, arg ); >From Matt Raible <[EMAIL PROTECTED]>: > I have the following in a base class for my Tapestry pages

Re: Tacos: the popup parameter of AjaxSubmit or AjaxEventSubmit

2006-03-29 Thread andyhot
You're right - popup was implemented in those components in beta-2 which hasn't been released yet. You can try a jar from tacos.sf.net/nightly or wait for the release. >From "Harvey, David " <[EMAIL PROTECTED]>: > Hello all, > > I have code that pops up a FloatingPane when the user clicks an

Re: Help with getLink() in IEngineService

2006-03-25 Thread andyhot
I'm not sure you're on the right track there. Instead, check out DirectLink and ExternalLink components: http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DirectLink.html http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ExternalLink.html also http://jakarta.apache.org

Re: Component wraps itself

2006-03-25 Thread andyhot
>From Andreas Bulling <[EMAIL PROTECTED]>: > Hi all, > and here is another short question: > As I didn't get to know how to "mix" a BaseComponent derived > component with a AbstractComponent derived one (using a > component html template _and_ output some html code with > IMarkupWriter) I decided

Re: Global bean configuration

2006-03-22 Thread andyhot
Nice! And i see you really like EnhancmentWorkers :) Regarding the initial question, i think there's a very nice solution for (2). Define an interface, ValidationDelegateAware or something like this: { @Bean ValidationDelegate getValidationDelegate(); void setValidationDelegate(ValidationD

Re: .page/.html/.jwc in different directories

2006-03-15 Thread andyhot
Well, using the code from the wiki, you can get to this structure WEB-INF \pages (*.page + *.html + *.properties) \components (*.jwc + *.html + *.properties) AFAIK the template should be near its spec (if there is one) but the spec can contain a special asset (named '$template') that overrides th

Re: Tacos @AjaxForm and @Upload

2006-03-14 Thread andyhot
Yep, that was a very ugly IE+dojo+multipart-http-request king of bug. The actual problem is that the response xml decides to play hide & seek with IE, transforms all its content into a 'simple' text node, and gets stored somewhere inside the first iframe it finds :) Anyway, get the latest from h

Re: Contrib:Table - How to change rendering of th?

2006-03-07 Thread andyhot
th table { width:100%; } >From Derick Fernando <[EMAIL PROTECTED]>: > To isolate this effect to just the headers in question do something like > this: > > .myTableClass table td { >align: left; > } > > matt wear wrote: > > That was the first thing I tried, along with a few other

Re: Custom Validator/Translator

2006-03-06 Thread andyhot
You only need to implement one translator (which, if input is invalid can act like a validator). The translator will have 2 properties, yesString + noString you'll define it in you .page like this: and use it like this: For each language you want to support, you just supp

Re: Tapestry 3 vs. Tapestry 4 when calling methods

2006-03-05 Thread andyhot
Indeed odd. Can you post some code + the exception you're getting? >From Matt Raible <[EMAIL PROTECTED]>: > On 3/5/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > That sounds odd. What happens if you try making it "ognl:getUserRoles()" > > instead? > > I tried this based on your recommendatio

Re: File upload with extension limit

2006-03-05 Thread andyhot
However, an "accept" validator, to be used like this: was described in this list: http://article.gmane.org/gmane.comp.java.tapestry.user/26835 http://article.gmane.org/gmane.comp.java.tapestry.user/26841 >From Nick Westgate <[EMAIL PROTECTED]>: > Hi Vincent. > > This has

Re: Tapestry 3 vs. Tapestry 4 when calling methods

2006-03-05 Thread andyhot
Aren't you using the 4.0 dtd? It should be >From Matt Raible <[EMAIL PROTECTED]>: > In Tapestry 3, I had methods in my pages like the following: > > public List getUserRoles() { > List selectedRoles = new ArrayList(getUser().getRoles().size()); > > for (Iterator it = getU

Re: Where's the Tag Library in Tapestry 4.0?

2006-03-03 Thread andyhot
I remember Howard explaining why the tag library was removed in 4.0 about 6 months ago in this list. However, I can't remember the explanation - probably had to do with the many different mappings that are now available for tapestry services. Anyway, you could take a look at how tapestry links a

Re: Multiple Submit Buttons and "Enter"

2006-02-15 Thread andyhot
No. Only disabled fields are omitted when a form is submitted. Fields with style="display:none"are submitted normally. You can write a quick html to confirm this, if you want. >From Martijn Hinten <[EMAIL PROTECTED]>: > I could be wrong here, but is it not so that "display:none" fields and > bu

Re: testing abstact method in Page with service Injection

2006-02-15 Thread andyhot
Well, the idea is that you can provide your own mock objects instead of the real services that the registry provides. This way you can have pure unit tests for the page. >From Rolf Strijdhorst <[EMAIL PROTECTED]>: > Hi, > > is there a way to test the injection of a hivmind service into a page? >

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread andyhot
It seems your result list contains the same actRow over and over. So, even if you could see data in the table, you would see the same row over and over. Could it be that your very last row contains empty values?? Anyway, try moving the Object[] actRow = ... line inside the for (t =

Re: trouble injecting pojo into engine service

2006-02-11 Thread andyhot
And also, if in a service-point you omit the interface attribute, its value is by default equal to the id of the service-point. Assuming that your module has a package="authsum.stitches", this explains why hivemind looks for (the non existant) authsum.stitches.StitchFolderHolder interface (which i

Re: Tacos & Tapestry Portlets?

2006-02-09 Thread andyhot
Hi, I had done some similar tests a month ago. >From Aj Gregory <[EMAIL PROTECTED]>: > Is it true that you can't use Tacos AjaxDirectLink with portlets since > getAbsoluteURL isn't supported? Yes, that was the case. Three days ago I refactored AjaxDirectLink, and it no longer uses getAbsolute

Re: Testing Tapestry Pages

2006-02-05 Thread andyhot
I generally create a mock for the IRequestCycle (using EasyMock), so havent run into this kind of problem. >From what I can guess from the code, you try to initialize the Tapestry system and have it along during the unit tests. Are there any real benefits to this, instead of using mocks? But an

Re: Tapestry and Spring Web Flow

2006-02-05 Thread andyhot
Cant find a release of SWF having a functional Tapestry integration. Are you using their CVS version? >From Archie Cowan <[EMAIL PROTECTED]>: > I've begun evaluating Tapestry for use in some applications that will make > heavy use of multipage forms. I've gotten familar with the component > conc

Re: How to escape a conditional close tag ?

2006-01-26 Thread andyhot
A working, though a bit ugly solution is this: instead of use ";} public String getEndTag() {return "";} >From Jorge Quiroga <[EMAIL PROTECTED]>: > Hello: > > I'm trying to organize some objects via For into a , but the > number of columns is user defined, then I thought to use the index >

Re: Jump out of Frame(Tapestry 3.0.3)

2005-12-13 Thread andyhot
>From Vincent <[EMAIL PROTECTED]>: > Hi AndyHot, > > I am use button(submit) to jump to another page , can target="_top" > also be used in that way? > No, only links have target. You can use a link to submit the form (and invoke the listener) - check the Link

Re: Unique Ids

2005-12-13 Thread andyhot
>From Leonardo Quijano Vincenzi <[EMAIL PROTECTED]>: > I just need to guarantee (mostly for Tacos) that this: > > updateComponents="ognl:{components.someComponent.id}" > > Renders the same id as this: > > id="ognl:components.someComponent.id" > jwcid="[EMAIL PROTECTED]"> > > *And*

Re: Unique Ids

2005-12-13 Thread andyhot
org.apache.tapestry.util.IdAllocator I think it's also used in tacos somewhere. It can generate unique ids for a given namespace. I think that every page has an instance of this class, but I don't remember if a component embedded in a page gets the same idallocator. >From Leonardo Quijano Vin

Re: Cycle not activating pages/callbacks

2005-12-13 Thread andyhot
>From Spencer Crissman <[EMAIL PROTECTED]>: > I have an T4 (b11) app where I am implementing some redirection for the > authentication portion of my pages. When the user attempts to access the > first page, it redirects them to login if they aren't logged in, and then > after they've logged in, i

Re: Jump out of Frame(Tapestry 3.0.3)

2005-12-13 Thread andyhot
target="_top" >From Vincent <[EMAIL PROTECTED]>: > Hi all , > > I met a problem of the PageLink jumping, one page have frames, which > implements navigation bar function. (looks like below , sorry for the > worse drawing) > > Usually when you click the navigaion frame, then the result frame wi

Re: Tacos Error

2005-12-13 Thread andyhot
Both alpha6 and alpha4 support Tapestry 4 betas up to beta-12. For Tapestry-beta-13 or rc1, you'll have to wait a new tacos release >From Joseph Faisal Nusairat <[EMAIL PROTECTED]>: > I was curious if anyone else got this error. > > I upgraded to apha6 then tried to go back to alpha4 but not qui

Re: adding a custom Type converter

2005-12-09 Thread andyhot
>From Glen <[EMAIL PROTECTED]>: > > This worked wonderfully thanks... > > One curiousity... The "public static final char PREFIX = '*';" Does > this have to be globally unique among all the SqueezeAdaptor's? I am > assuming this must be unique to the squeeze adapter and that tapestry > will

Re: 4.0 Question ... Servlets and Cache

2005-12-09 Thread andyhot
You remember correctly :) But i think it was in one of the mailing lists. Someone had asked if in 4.0 the meta property that copies assets to a folder in the current context still works, and he got the response that you're describing. >From Patrick Casey <[EMAIL PROTECTED]>: > > >

Re: Build problems

2005-12-07 Thread andyhot
>From Drew McAuliffe <[EMAIL PROTECTED]>: > I've been running into a number of problems with building tapestry (RC1). > The biggest problem I have is that the build structure is completely > interdependent on HiveMind. While I can understand a need to have access to > HiveMind, I don't see why I

Re: Is HttpServletRequest cached?

2005-11-17 Thread andyhot
> Hi, > > I am trying to get the remote host ip by using: > > > @InjectObject("service-property:tapestry.globals.HttpServletRequest:remoteHost") > public abstract String getRemoteHost(); > > If I connect to the server from two different pc's, the second pc will show > the first o

Re: FCKEditor component for TP4 (was Re: HtmlArea component for T4)

2005-11-16 Thread andyhot
Oh no! And I thought that tapestryfckeditor was yours and that it contained the same component that you have in Trails... Either way, since I now have a working version of HtmlArea for Tapestry 4, I'll try to send it to its original author and ask him to add it in Tassel. > I ended up having an e

Re: Problems with applications not configured under /app

2005-11-16 Thread andyhot
This was asked 3 days ago. And it's also answered in the "Upgrading from Tapestry 3" page of Tapestry's site. > Hello , > > Ever since i've moved to tapestry 4 i noticed that I can't work well with an > > application who'se path is not set in web.xml to "/app" . For example if I > setup the ta

Re: {SPAM?} Re: Best way to screenscrape tapestry

2005-11-15 Thread andyhot
Αρχικό μήνυμα από Ted Steen <[EMAIL PROTECTED]>: > There should not be any problems with the Cache component if one uses > cookies, right? True, but can you really make sure that your clients never disable them? Fact is that up to now, I try not to mix the cache with components that generate li

Re: getting the host name

2005-11-15 Thread andyhot
And finally, you could inject tapestry.globals.WebRequest in your page using and do a getWebRequest().getServerName() OR you could just inject the servername like this: I prefer this last option. It's so much easier to unit-test. Otherwise, you'ld have to mock everything (cycle - infrastruct

Re: Best way to screenscrape tapestry

2005-11-15 Thread andyhot
> Wow! > > This is a really powerful component! > Simple and powerful. Well, thanks but you have to take care when using it. For instance, you'll run into problems if you want to support sessions with url-rewriting (instead of cookies) and you also want to cache html content that contains direct

Re: Best way to screenscrape tapestry

2005-11-14 Thread andyhot
I also needed to cache parts of some pages, and so I created the cache component of TapFX ( tapfx.sf.net) which uses EhCache. I use this component a lot in my own apps. However, the latest version for Tapestry 3 contains a bug (so instead get v0.30) and the update for Tapestry beta-13 has broke

Re: TableView

2005-11-05 Thread andyhot
Αρχικό μήνυμα από Kent Tong <[EMAIL PROTECTED]>: > Peter Truong visionmax.com> writes: > > > I was wondering if anyone can tell me exactly how to implement the low > level > > table components. Basically i > > want to put a second page navigation tool at the bottom of my table. > > Use a T

Re: localizing messages programatically

2005-09-14 Thread andyhot
> How do you do the equivalent of "message:foo.bar" in code? see IComponent.getMessage("foo.bar") or IComponent.getMessages().getMessage("foo.bar") The first is deprecated in 4.0, but the only option in 3.0. > > -- > Dan Adams > Software Engineer > Interactive Factory > > >

Re: tapestry CACHING issue

2005-08-07 Thread andyhot
> > When making it abstract getter/setter, will it do to > > set "initial-value" of > value that was set as class variables. I read > > somewhere that initial-value of property specification > > is set just before page is put back to pool. So feel > > that when class is instantiated, it will not h

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread andyhot
Also, http://tapfx.sourceforge.net/ has an OutlookBar component > You could try the krysalis (sp?) menu? There's a sourceforge project for > it, and it's also available on tassel. > > > Matias Blasi wrote: > > Hello! > > It's an great help!! I needed it! And now I think about a menu bar > > lik

Re: is posible acces visit object in a component?

2005-05-19 Thread andyhot
gee! 3 replies within the same minute - and a late one :) So, anyone keeping a score? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: is posible acces visit object in a component?

2005-05-19 Thread andyhot
ognl:page.visit.userName > Hello > > i creating a simple form component that extends BaseComponent > > > i trying to get put the userName in the component using an insert like this > > > > but this always return and exception > > org.apache.tapestry.BindingException > Unable to resolve expr

Re: HTML in response stream

2005-05-15 Thread andyhot
There are just too many ways to do that... 1) Write a servlet filter that applies the xslt 2) Write a tapestry component that surrounds everything in your pages, override its renderComponent() and a) make it render its body in a "buffer" (there's a renderBody() method) b) apply xslt to t

Re: Assets and Checksums (was Re: HtmlArea broken by Tapestry 3.0.3?)

2005-04-13 Thread andyhot
Check http://jakarta.apache.org/tapestry/doc/clover/org/apache/tapestry/asset/ResourceChecksumSourceImpl.html , line 97 , the resourceURL seems to be null... So, most probably, you've misspelled the file path in your asset declaration and since XP is working, it must be an upper or lower case typo