I use this method:
/**
* Call this from pageBeginRender:
*/
public void savePageLink() {
if (getRequestCycle().isRewinding())
return;
ILink iLink = null;
if (this instanceof IExternalPage) {
ExternalServiceParameter esp = new
ExternalService
If by 'org.apache.tapestry.home-page' variable you mean the the meta tag
declared in your application specification file then here's how you do
it:
@InjectMeta("org.apache.tapestry.home-page")
public abstract String getHomePage();
-Original Message-
Hello,
Could you
Peter,
I'm not quite sure where the problem is. Obviously you can't use the same
extension for different encoders. But you can certainly access the SAME page
through a PageLink and an ExternalLink.
In your page class, you would need to implement the activateExternalPage
method of the IExternalPag
Jim,
I'm a bit puzzled myself, but how did you manage to run the app without
providing setters for 'idx' and 'name' fields:
public abstract void setIdx(int idx)
public abstract void setName(String name)?
Regards,
-Original Message-
From: Jim Downing [mailto:[EMAIL PROTECTED]
Sent: Tue
rmal, but I see that maybe is not that normal. Do
you know anyway to solve this problem ?
Thanks you,
robert
On 1/5/07, Firas Adiler < [EMAIL PROTECTED]> wrote:
>
> Hi Robert,
>
> The listCustomersFound must be the same on both rewind and submit.
> Remember
> that
Hi Robert,
The listCustomersFound must be the same on both rewind and submit. Remember
that two List objects (java.util.List) are equal if they contain the same
elements in the same order. I suggest that you sort the list before
returning it to Tapestry.
I believe that was the solution to my prob
Hi Kevin,
This exception is "thrown if an Authentication object does not hold a
required authority". "ROLE_USER" is the authority you used to secure your
pages. It seems that your Acegi configuration is not complete. I'm a
beginner myself and found this page very helpful:
http://www.tfo-eservices
First a reservation: I'm not an expert!
But I'm willing to help.
Your configurations seem to be incomplete:
1) Did you specify a context for your webapp? Please see
http://tomcat.apache.org/tomcat-5.0-doc/config/printer/context.html
2) How does your hivemind configuration for tapestry.url.Serv
1)
2) Create a class that implements
org.apache.tapestry.engine.state.StateObjectFactory with this signature:
publ
> Are you using tapestry-spring?
No, I'm not using tapestry-spring. It turns out that I got it to work
correctly using only spring's ContextLoaderListener approach. And as you may
have guessed, it doesn't work when dropping tapestry-acegi into the
classpath. The exception I get is the same, "An
id you set up tapestry-acegi exactly as it described on the wiki
page?
Me, and others reading this archive, will appreciate your help.
Thanks,
P.S. My platform - Java 6, Tomcat 5.5.17, Tapestry 4.0.2
-Original Message-----
On 12/14/06, Firas Adiler <[EMAIL PROTECTED]> wrote:
>
Hello,
Following steps in this thread
http://forum.springframework.org/showthread.php?t=24013 I managed to get
acegi working using JdbcDaoImpl. Now I get an ApplicationRuntimeException as
soon as I call the webapp url. Unfortunatly, I can't rollback the changes
that affected this misbehavior, sin
Check the Panel component, from the YUI Library:
http://developer.yahoo.com/yui/examples/container/panelwait/2.html
Regards,
-Original Message-
From: Sam Gendler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 10:07 PM
To: Tapestry users
Subject: need "please wait" noti
It seems that "classpath hack" is the only way to go, i.e placing a copy of
org/apache/tapestry/form/Form.js somewhere in the classpath before
Tapestry's original Form.js.
Regards,
-Original Message-----
From: Firas Adiler [mailto:[EMAIL PROTECTED]
Sent: Monday, December
Hello,
Is it possible to use a customized Form.js
(org/apache/tapestry/form/Form.js)?
Thanks for your time!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ohh, I see...
If we take Navin's example and assume that your blocks are in MyBlocks page:
then the 'testValue' property will be called on MyBlocks,
MyBlocks.getTestValue().
The only interaction, that I'm aware of, between MyBlocks and other pages is
like this:
Note the use of an informal
m now on an entirely different page?
3) What are the best use-cases for such usage?
Thanks, Karthik
On 11/8/06, Firas Adiler <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> There's IMO an easier way.
>
> Assume
> HtmlBlocks - the page containing the external block(s)
&
And look what you get for (almost) the same price in Switzerland:
http://www.prokmu.com/eng/hosting.htm
And they speak English too! ;-)
Here's another one that I personally use: www.idaq.com
-Original Message-
From: Malin Ljungh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2
Hi,
There's IMO an easier way.
Assume
HtmlBlocks - the page containing the external block(s)
ClientPage - the page that uses those external blocks
In your ClientPage.page you write:
And to access these blocks you write:
ognl:exBlocks.components.theNameOfTheBlock
Hope this hel
Hi,
Sorry for the incomplete post (it's MS Outlook beign to damn helpful).
My question is: how do you create an absolute 'restart' link in Java?
Thanks for your time!
_
From: Firas Adiler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 1:27 PM
To:
Hi everyone,
In Java, how would you code do something like:
Malin,
It has nothing to do with Tomcat. It's a Java thing, really. Properties
files are not unicode, wich means that non-ASCII characters need to be
encoded. Usually your IDE should take care of this for you (in Netbeans this
support is built-in).
In Eclipse I'd recommend Eclipse ResourceBundl
Hi,
It should be more like:
In your ArticleComp you access the 'articleId' parameter like this:
IBinding iBinding = getBinding("articleId");
String articleId = (String) iBinding.getObject("articleId");
Regards,
-Original Message-
From: jake123 [m
Hi,
I think these components are well suited for this kind of job:
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/RenderBlock
.html
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Block.html
-Original Message-
From: Mike Grundvig [mailto:[EMAIL PR
Hello Simon,
I assume you've subclassed org.apache.tapestry.form.validator.Validator?
The "false" field is passed as a parameter to the method:
validate(IFormComponent formField, ValidationMessages messages, Object
object)
But you don't need to worry about passing it to the validation delegate.
ponent.getInvoker().getPage().getSomePageProperty()
>
> Regards,
> Norbi
>
> Firas Adiler wrote:
>> Hello,
>>
>> Can a Block-component access the page/component that's calling
>> RenderBlock?
>>
>> Assume page C contains this ca
the caller's properties
Check out Block's getInvoker() method.
Try
blockComponent.getInvoker().getPage().getSomePageProperty()
Regards,
Norbi
Firas Adiler wrote:
> Hello,
>
> Can a Block-component access the page/component that's calling
RenderBlock?
>
> As
Hello,
Can a Block-component access the page/component that's calling RenderBlock?
Assume page C contains this call: jwcid="@RenderBlock"
block="ognl:someBlock"
Can someBlock access page C's properties?
Thanks for your time!
Hi Malin,
That's because Tapestry looks for "username-not-unique" in the properties
file bundeled with Tapestry. To override it, your
ValidationStrings.properties should have this path
{CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties.
To do that:
create the package /org/ap
Oh, I see...
I'm using a border component too. The css files it uses are placed in the
"root context folder" (i.e the folder containing 'WEB-INF' folder) like
this:
rootFolder/
|__ cssfiles/
| |_ style1.css
|
|__ WEB-INF/
30 matches
Mail list logo