Hi Bianca.
I'm working in T3, but T4 still uses a validation delegate,
so perhaps this might be helpful to you.
To make things easier, I extended ValidationDelegate to add:
public boolean isComponentInError(String componentName)
{
List trackings = getAssociatedTrackings();
Hi Mat.
Your problem here is that your value is one (String?) property.
Try pointing to a cell in an array, or if you want to keep your
iterator-based approach, wrap the String into an object where
you can mutate the String. E.g. value="ognl:currentValue.value".
Cheers,
Nick.
Mat Gessel wrote
Hi Marcus.
A (T4) documentation-generation tool is nearly ready:
http://www.erinors.com/product/tapdoc/
But help in this often lacking area would probably be much appreciated.
The place to offer your assistance is the tapestry-dev list.
Cheers,
Nick.
Schulte Marcus wrote:
good point. If the
Sure, this is how I use it in Tapestry 3 ...
You need a model somewhere, say in class SomeClass:
public class SomeClass
{
public static final IPropertySelectionModel theModel =
new StringPropertySelectionModel(new String[] {"a", "b", "c"});
}
You need an array for the selected list,
Hi Dwi.
You should have a look at contrib/MultiplePropertySelection:
http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/MultiplePropertySelection.html
The default renderer is what you want:
CheckBoxMultiplePropertySelectionRenderer
Cheers,
Nick.
Dwi Ardi Irawan wrote:
> Hi.
Since Gaz is probably not from the US, this is likely a culture-gap:
http://whatis.techtarget.com/definition/0,,sid9_gci212837,00.html
Kids didn't wear 'beanies' where I came from either. ;-)
Cheers,
Nick.
gaz jones wrote:
> lol seriously lighten up... its a joke
> im sure Howard Lewis Ship *pr
Hi Jason.
Hate to see a first post go unanswered. ;-)
Two paths lie before you. (That I see.)
If you're using Tapestry 4, the first path is blocked off.
T3's PropertySelection had a renderer parameter which
has been deprecated and removed, sadly. With this you
had control over the component's re
Hi Steve.
Like I said, seems the other guys jumped the gun on this.
Cognition looks great, and I really appreciate the effort
you guys are putting into the promotion of Tapestry.
Cheers,
Nick.
Steve Motola wrote:
..and really, the last people we want to piss off is the Tapestry Community
(es
I'm sure this was done with good intentions - if you read Steve's post:
Steve Motola wrote:
> Honestly - none. I would surmise it was not very active. Spoke with Collin
> from Spring (who was the only company I can remember being a part of the
> Tapestry Support Network) and he didn't know.
>
>
Bug Fixes for 3.x
*cough* okay... (may have proposed a patch or two on this recently ;-) )
For those not following the dev list, Brian (for 3.x in particular) and Jesse
have been working their way through the JIRA issues, and closed - what - about
a 100 or so?
Many patches have been applied
Annie, there are some listed on the wiki, but not many for T4.
http://wiki.apache.org/jakarta-tapestry/TapestryTutorials
My advice would be to go through Kent's free chapters 1-4, and
then as Pedro says, creating components can be as easy as pages.
Basically you rename your .page to .jwc, change
Hi Christian.
This may not be relevant - but just in case - there was an
issue with Tapestry 3 to do with double clicking submits.
I'm not using T4 yet and things may have changed, but read this:
http://article.gmane.org/gmane.comp.java.tapestry.user/19128/match=locked+filter
Cheers,
Nick.
Ch
Hi Vincent.
Of course, this is completely customizable.
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/valid/ValidationDelegate.html
#writeSuffix(org.apache.tapestry.IMarkupWriter,%20org.apache.tapestry.IRequestCycle,%20org.apache.tapestry.form.IFormComponent,%20org.apac
arameters to be in any order. Am I missing something or will I have
to ensure that every browser sends the query string in the same order?
That strikes me as fragile.
--sam
On 3/6/06, Nick Westgate <[EMAIL PROTECTED]> wrote:
Hi Sam.
Check out IExternalPage:
http://jakarta.apache.org/tape
Hi Sam.
Check out IExternalPage:
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/IExternalPage.html
Cheers,
Nick.
Sam Gendler wrote:
I have data in another application which isn't built on Tapestry. I
need to put a form on a page which isn't delivered by Tapestry, and
his 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 nothing to do with Tapestry.
In general it is difficult or impossible because of browsers
Hi Vincent.
This has nothing to do with Tapestry.
In general it is difficult or impossible because of browsers.
Google for it.
E.g.
http://www.cs.tut.fi/~jkorpela/forms/file.html#filter
Cheers,
Nick.
Vincent wrote:
Is there any news about this?
On 2/28/06, Vincent <[EMAIL PROTECTED]> wrote
r me, the
expression used in the tapestry commercials :)
Maybe my code should use the visit object in every page anyway, I don't use
any ASOs yet, partly because our application has been ported from struts,
and is still partly struts-implemented, needing quite a few integration
points.
Hi Inge.
I use the FlowSynchronizer pattern that Sohail linked to,
and here's how I avoid code duplication.
In my T3 apps the FlowSyncronizer is stored in the Visit object.
My border component includes the token in every page:
In addition, I didn't like the exceptions, so instead:
private
Hi Jason.
In your .application file, these pages can be defined:
Cheers,
Nick.
Dimm, Jason wrote:
Can someone pls respond? I've tried several things and nothing is working.
Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Ja
Hi Brian.
Add a script file to your project with an section.
This gets added to the onload. Note that you need a Body component.
e.g.
in .html
in .page
in SetWindowName.script
http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>
Anyone considering solving their problems with Retroweaver should read this:
http://weblogs.java.net/blog/kirillcool/archive/2005/07/porting_small_l.html
Still, Howard seems mainly interested in just using new language features
such as annotations and generics, so it might be feasible if done car
Hi Craig.
If you're worried about security, you might want to upgrade to 3.0.3.
Anyway, as Paul points out one way to manage basic security is to have
a base page that your non-home pages derive from. Something like this:
public abstract class MyUserPage extends BasePage implements
PageValidat
Hi Vincent.
Here's something I posted to the list ages ago.
There are usually plenty of examples if you search the list archive.
In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.
Cheers,
Nick.
Vincent wro
Hi Michael.
I've added an issue to JIRA for this:
http://issues.apache.org/jira/browse/TAPESTRY-806
Please add new info there - especially any resolution!
Cheers,
Nick.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Crikey. It's a textbook case.
The code in T4 is completely different because of Hivemind.
The comparable code syncs on the given specification, and
you should be able to do the same, namely patch it to:
public Class getEnhancedClass(IComponentSpecification specification,
String className
Hi Aslak.
This bug affects only LinkSubmit. (In Tapestry V3 - not sure about T4 yet.)
A bug has already been logged:
http://issues.apache.org/jira/browse/TAPESTRY-339
If you are using T3, have a look at LinkSubmitOrSpan, which fixes the bug:
http://www.tapestrycomponents.org/Tassel/app?service=ex
Hi Inge.
In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.
Cheers,
Nick.
Inge Solvoll wrote:
I need to implement a popup window called by javascript. It will be a
dialog box in my application. In this win
Hi Douglas.
I presume you are using
-Dorg.apache.tapestry.disable-caching=true
or similar for development.
Try running your app without this, i.e. in production mode.
I've seen exceptions in dev mode that don't happen in production.
Cheers,
Nick.
LOCHART,DOUGLAS E wrote:
Geoff,
I changed ou
Hi Douglas.
Time to learn some of those Tapestry internals, or rather, APIs. ;-)
Look at the source for some of the link components to see how they do it.
In particular you need to use ILink - see page 333 of TIA, or do search
for it if you have the eBook edition.
Anyway, but here's a quick exam
Hi.
Like Pat says, you need to synchronize/serialize your requests somehow.
I use a modified RequestControlFilter, originally from:
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1
You also need to prevent multiple submissions server-side.
I use a variation on the FlowSynchr
Hi Richard.
Robert probably should have also mentioned that there's a component
in his Tassel repository called "EncodedMailLink" if you need to
hide the email address from mail harvesters etc:
http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SEncodedMailLink
Cheers,
Nick
Hi Paul.
No other replies yet, so I'm wondering why not PageRenderListener?
(Or its T4 equivalent.)
Cheers,
Nick.
Paul Cantrell wrote:
Is there a good way for a page to initialize itself if it's being
called from the page service?
A different way of asking this might be: is there a way to
ble in my class and if I create a method without the "IRequestCycle
> cycle", how do I get which was the selected item?
>
> thanks,
>
> Mark
>
> -Original Message-
> From: Nick Westgate [mailto:[EMAIL PROTECTED]
> Sent: Thu 8/18/2005 4:09 AM
>
Hi Mark and Muhariz.
Have you considered using the LinkSubmit selected and tab parameters?
I'm using a string because I like to do naughty things: adding extra
'parameters' to the string and parsing it later. But the certified Tapestry Way
would be to use an array
I think so. But his sample usage has a listener, so I'm not sure ...
Cheers,
Nick.
The Chris Method wrote:
Is he just looking for what getLink(...) in the DirectService class will
provide?
returns
"/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdf
And we learn something new every day. :-)
Thanks,
Nick.
Darío Vasconcelos wrote:
You might want to check out AbsoluteLinkRenderer, it subclasses
DefaultLinkRenderer and you can change the protocol, server and port.
-
To unsu
Hi Jeremey.
You're question is not very specific, but if you want
to render a custom link, subclass DefaultLinkRenderer
and pass it to the render parameter of a link component.
Also, search the list archive for https.
Cheers,
Nick.
Jeremy wrote:
How do I render a form with an https action li
Hi Ryan.
In your case, yes, though I don't think there's a way to differentiate
which of multiple PropertySelections was responsible for a submit.
(Someone please shout out if there is.)
You need some kind of target - for various reasons I prefer a string:
For your submits do somethin
(e.g. DirectLink) to see how to get access to the URI
for a link specific to a particular service.
Cheers,
Nick.
Nick Westgate wrote:
Hi Edward.
You'll want to subclass org.apache.tapestry.link.DefaultLinkRenderer.
Bend it to your will and pass a (static) instance to the renderer
paramet
Hi Edward.
You'll want to subclass org.apache.tapestry.link.DefaultLinkRenderer.
Bend it to your will and pass a (static) instance to the renderer
parameter of your chosen link component.
Cheers,
Nick.
Edward Scanzano wrote:
Hi all,
I need a custom link component that will return only
the h
Hi Ryan.
AFAIK you'll have to put a listener on the form (or modify the component
somehow to take a listener).You can still keep your other listeners,
but my preference is to use the tag and selected parameters to differentiate
submits and handle everything in the one (form) listener.
The submit
Hi Paul.
This seems to be a bug in MultiplePropertySelection.
The reason it's not working for you is because the
component is not named. You can fix this by changing
I'm attempting to use MultiplePropertySelection like this:
Categories:
model="ognl:categoryOptions"
Hi Greg.
I'd really like to hear Howard's comments on this sometime, because
like you say, the problem has been discussed before and the only
solution given seems "outside the framework".
You'll find more discussion if you search the archives for the
"locked after a commit" error.
The solution
Hi Geoff.
I deal with these regularly, and have stepped through JDBC drivers
from the client side java all the way through to a server's (buggy)
C++ driver in assembler.
Basically there are 2 reasons to use PreparedStatement.
1 - efficiency, since they're compiled, and the server can cache them
Hi Kent.
It's not a bad idea. I'm sure all of us Tapestry users are aware
(thanks to Google) that we can buy rugs online. ;-)
Another upgrade problem would be if an application page is using
both Conditional and If/Else, as the Else might be affected.
For and If are much catchier names though,
Hi Hari.
I don't know the answers to all these questions - so I'd be
interested in answers from others who do use initial-value.
It seems to be used for resetting page properties when the
page is _returned_ to the pool.
My advice would be "don't use it". Initialise your page
properties etc in pa
Hi Dario.
It definitely doesn't _have_ to be a "killer component"!
Firstly, I decided to publish AnySubmit and LinkSubmitOrSpan on Tassel
because I figured these little 'corner' use cases would be common.
I'm sure everyone has a little component like this, or a renderer or
something that would s
Hi Fernando.
You'll want to write an ILinkRenderer to pass to the ExternalLink.
I've only got the Tapestry 3 source handy so I'm not sure about 4,
but it should be similar.
Grab framework\src\org\apache\tapestry\link\DefaultLinkRenderer.java
and rename it to a new class in your project. I recomm
Hi Chris.
Check out the contrib PopupLinkRenderer.
You can supply one of these to GenericLink etc.
Cheers,
Nick.
Chris Chiappone wrote:
I basically need a GenericLink using a javascrip function:
How do I get 'MyPageName' as
some suggestions to go beyond what Tapestry
provides today, some of which would be useful to tools like Spindle
and Palette, or even to distro communities like Tacos.
On 7/25/05, Nick Westgate <[EMAIL PROTECTED]> wrote:
Hi.
Howard's book "Tapestry In Action" explains how to d
Hi.
Howard's book "Tapestry In Action" explains how to do this in
chapter 6.9 "Packaging components into libraries".
Components are (1) packaged in a jar, (2) specified in a
".library" file, (3) included in the classpath and configured
in the ".application" file, just like the contrib library
(b
Hi Muhariz.
This component is in the contrib library, so you need to add:
to your .application file.
In your .page file, use:
hey guys, im trying to figure out why im getting this error? i found this
"MultiplePropertySelection" component on the Tap 3.0 API and tried to use it
in my ap
Edward Scanzano yahoo.com> writes:
>
> Hi all,
>
> How can I access the Visit object from within a
> component? getVisit() is not available for
> BaseComponent.
>
> Thanks
>
> -
> To unsubscribe, e-mail: tapestry-user-unsubs
Patrick Casey adelphia.net> writes:
> The poor guy may very well not be up to that though. If we really
> want tapestry to be useful to inexperienced or "new" developers, then asking
> them to just "tweak" the components themselves isn't the way to go.
Hi Pat. (Damn this gmane interface's
Patrick Casey adelphia.net> writes:
>
>
> Probably because it's frustrating to find a bug (or at least think
> you've found a bug) and have folks neither confirm, nor deny the bug, but
> instead question why the hell you're doing things a particular way :).
No excuse. Probably 99% of po
Richard V. hotmail.com> writes:
>
> Robert is correct for what I am trying to do and here is a simple example
> that you can try and see if you get the same problem (my custom class
> objects not being persistent) that I have. You can just copy and paste into
> the respective files.
I've nev
Edward Scanzano yahoo.com> writes:
>
> Hi all,
>
> This topic is all the rage on the board right now so I
> am hoping to finally get some resolution to it.
I think Robert has already answered your question:
From: Robert Zeigler scazdl.org>
Date: 2005-07-20 19:58:16 GMT (1 day, 22 hours and 2
Ben Wong matthiasgroup.com> writes:
>
> Okay, now I feel really stupid... Thanks Howard.
>
> Ben
Spindle would have caught this for you at code-time.
Cheers,
Nick.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Hi Cedric.
I can't test anything right now, but here are two possibilities:
(1) wrap individual Radio components with AnySubmit
http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SAnySubmit
(2) use PropertySelection with RadioPropertySelectionRenderer,
and customise this r
Hi Darío.
Look at the source code. It only takes a minute to find out why.
You're passing in a RadioPropertySelectionRenderer, right?
If there is no renderer, PropertySelection puts onChange and
informal parameters in the select tag:
writer.begin("select");
...
if (getSubmitOnCha
Hi.
Interesting usage. Without code, I'm not sure exactly what you're doing,
but I just quickly tested the following which seems to work on Tapestry
3.0.3 and Firefox/IE6:
.page:
.html:
TestCheck
If you need more help, please post your code, and the Tapestry v
Mike,
Is this Eclipse 3.1 ready?
The supported version number wasn't on the website.
Cheers,
Nick.
Michael Henderson wrote:
Well it isn't WYSIWYG but check out Tapestry Palette for Eclipse:
http://tapestrypalette.sf.net
It sits on top of Spindle and provides drag and drop of components onto
Francis's questions seem more naive than obnoxious.
Lots of great work has been going on - and is still
going on - driving Tapestry towards 4.0 release.
Hardly signs of an "abandoned" project.
At the same time development efforts like Trails and
the new AJAX components available bring some of th
Hi,
Of course, he submitted it to his Tassel repository:
http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SCayenneDataObjectSqueezeAdaptor
Besides, his last post was from an internet cafe.
You might be waiting a while to hear from him.
Cheers,
Nick.
Todd O'Bryan wrote:
Tassel is a great asset to the Tapestry community. It's a shame it's not
listed as one of the "Related Projects" from the Tapestry homepage.
It's also good that it contains components from other projects, showing
that this is a good way to distribute in a centralized, non-exclusive way.
Live comp
You mean ... like this?
http://robin.sourceforge.net/
(I've seen others, but googling didn't help much.)
We already have some great components for Tapestry.
It would be good to see them brought together into the same stable,
with standard docs, online demos and painless out-of-box usage.
To prese
I haven't been following this thread, but check the docs.
The feature param looks like a string, so give it one.
Use ' ... ' inside the expression for an OGNL string:
Note the extra ' characters.
Cheers,
Nick.
- Original Message -
From: "Jer Kah" <[EMAIL PROTECTED]>
To: "Tapes
Tassel is a great asset to the Tapestry community. It's a shame it's not
listed as one of the "Related Projects" from the Tapestry homepage.
It's also good that it contains components from other projects, showing
that this is a good way to distribute in a centralized, non-exclusive way.
Live com
How about this for a desktop:
http://robin.sourceforge.net/
(I've seen others, but googling didn't help much.)
We already have some great components for Tapestry.
It would be good to see them brought together into the same stable,
with standard docs, online demos and painless out-of-box usage.
T
Hi Pablo.
I've been meaning to add this to my LinkSubmitOrSpan component for a while.
So I did it just now. You can download it from Tassel. Example usage:
Link 1
Cheers,
Nick.
Pablo Ruggia wrote:
> Hi !
>
> Sorry if this was asked before, but I can't find anything.
> How can make
+1 for continuing to mail your announcements to this list.
It's not annoying at all. Spindle is vital part of Tapestry.
You should be presented with a "key to the list". ;-)
Cheers,
Nick.
Geoff Longman wrote:
Hey, is this getting annoying? In other words, is everyone I'm
reaching in this way
Hi.
The docs say use raw="yes"
http://jakarta.apache.org/tapestry/current/UsersGuide/template.html#template.directives.l10n
Similar to @Insert with raw="ognl:true".
Cheers,
Nick.
Chuck Coker at Tyrell Software wrote:
Hi,
I'm try to create web pages that are l10n/i18n ready. I've run into a
component that submits its enclosing form via JavaScript
onClick.
*
* @author Richard Lewis-Shell (original LinkSubmit code)
* @author Nick Westgate (hacked into AnySubmit)
* @version $Id: Submit.java,v 1.6 2003/04/21 13:15:41 glongman Exp $
*
**/
public abstract class AnySubmit exte
when the user hits the enter key.
value="message:button-proceed" listener="ognl:listeners.submit"
style="display:none;"/>
...
Hope it helps, greetz
-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED]
Sent: maandag 13 juni 2005 10:19
Hi Domonic.
Check my post in the thread that Johan linked to below.
If you are using only Submit components, the ButtonSubmit component
will help you ... BUT ... the price for this may be problems if users
click the browser back button.
LinkSubmit can cause similar problems if mixed with other
Yeah. I double posted because of this. Unusual ...
Patrick Casey wrote:
Is anyone else noticing a sudden severe decrease in performance
of the Tapestry User mailing list? Historically, it was usually < 5 minutes
between the time I sent a message to the list server and it pushed back
(Repost, as my first try didn't show on the list ...)
This is also used in the standard "Any" component.
("element" defaults to "templateTag" ...)
A quick google shows that Mind Bridge committed the
templateTag change to CVS two years ago! This handy
parameter should be prominent in the docs, but
This is also used in the standard "Any" component.
("element" defaults to "templateTag" ...)
A quick google shows that Mind Bridge committed the
templateTag change to CVS two years ago! This handy
parameter should be in the docs, but I haven't seen it.
I crossed "Any" with (Glen Stampoultzis's) "
Hi Kuon.
Don't use initial-value.
Instead, initialize your properties in pageBeginRender. I do this:
public abstract class MyPage implements PageRenderListener
{
// called before page rendering and also on form submit (rewind)
public void pageBeginRender(PageEvent event)
{
// in
Hi David.
I had to deal with this pretty early on in my Tapestry learning, and have
stuck with pretty much the same strategy since then. There are two ways
that I handle it. First here's the simple one:
What you need is the very useful "ButtonSubmit" component written by
Glen Stampoultzis (also t
Hi.
I've been developing Tapestry apps involving Japanese content using
default settings (UTF-8), and have experienced no problems.
(Well, except OSX IE5 not displaying Japanese UTF-8 in drop downs!)
The apps so far have been for intranets - a good proving ground for me,
and restricted to just a fe
82 matches
Mail list logo