Commenting out those lines did fix one of the problems I was having.
There was one other, however. On line 237 of
org.apache.tapestry.junit.script.TestScript the string passed to
execute() read "invalid-key-Set.script". I needed to change that to
"invalid-key-set.script" and everything b
hi,all
I found something wrong when Integrate Tapestry and Acegi Security for
Spring . Acegi uses Filter to deal things of security. After filters,Acegi
may create a Session for store Authentication information.
But after doFilter(),that's to say,after executes a tapestry's page,I
found t
1. How to let the browser create only one Popup Window instance. For example
, there are two links, LinkA and LinkB.
If you click the LinkA, "Hello, World" will be displayed inside a Popup
window. and If you then click the LinkB, "Hello, Tapestry"
will be displayed in the SAME popup window. No o
I am now implementing a ClosePopup page to close the current popup window
and reload its opener by the following the javascript statements:
window.opener.location.reload(true);
window.close();
Please consider this case:
1. A user submit something in the main page;
2. The user activates the popu
Short background: Using "DynamicBlock" component that
will call the component spec resolver to get a
component. If the component is in a library, the
component spec cannot find it. I initially thought
the problem was with this little component, but this
component merely calls the component reso
update from the dumb front...
Well The last one was my fault, sorry, I left a foreach loop test
before the component was rendered. Anyway, why does it happens? After
a foreach isn't the pointer returned to the first position of the
list? I wonder...
Ok, So I finally got What I want, almost to be h
update from the dumb front...
Well The last one was my fault, sorry, I left a foreach loop test
before the component was rendered. Anyway, why does it happens? After
a foreach isn't the pointer returned to the first position of the
list? I wonder...
Ok, So I finally got What I want, almost to be h
Well folks I'm really having a hard time on this. Let me try to point
the situation:
On my visit class I store the user object as soon as the user logs in.
The user object has a Set of groups, and those a Set of categories
(lazy loaded from hibernate).
What I'd like to do is dawn simple.
Initiali
Koen Segers scarlet.be> writes:
>
> Is it possible to tell tapestry to generate valid html?
>
> When I try to validate my webpage, I always get error messages in form
> fields.
> Stupid error messages like /> where the / isn't allowed...
Are you sure about that? The validator is happy with
News...
So I moved the default group to the visit object...
now I have:
public void pageBeginRender(PageEvent event) {
Visit visit = (Visit)getVisit();
setCategories(getUserService().getCategories(visit.getDefaultGroup()));
}
What I get for doing thi
Just to add a little bit. My dilema is, if I implement:
PageRenderListener and try to set the categories on the
pageBeginRender method, well I can't access the group there, once the
component wasnt completely rendered. :( I'm thinking in moving
everthing to the visit class, which I was avoiding...
Check out the
- org.apache.tapestry.disable-caching
- org.apache.tapestry.enable-reset-service
configuration attributes at
http://jakarta.apache.org/tapestry/current/UsersGuide/configuration.html.
(They are available in Tapestry 3 as well.)
Br,
Norbi
- Original Message -
From: "Vini
Hello everyone. I know it's possible to disable page caching, so when
I change an HTML or a page I don't need to re-start the application
but how can I accomplish this?
Regards
Vinicius.
-
To unsubscribe, e-mail: [EMAIL PROTECTE
It's a dangerous thing.
Think this possibility:
You have a form with name, surname and login. You fill name and surname.
Then you click accept. Your validation says, "you have to fill login". In
that moment, you have your page rewinded. All your properties have been
updated, except login. You p
Excellent Denis, this did it for me!
Denis Golubev wrote:
Can someone please give me some tips as to how to use my own
log4j.properties file to perform logging. I can't seem to get this
working, and I need it desperately. I placed log4j.properties in
/WEB-INF/classes (and tried some other s
Hi,
I would like to know how can I cancel rewind upon form submission?
I have two submit buttons for edit and cancel operations. On click of
"cancel" button , I would like to avoid form rewind and restore the changes
back.
Thanks,
Arun
---
Hi,
I am using tapestry ajax component xtile. this thread returns me
results for a search without a page refresh. I am populating the
result returned by xtile into a simple html listbox. now onsubmit of
the page I want to read the selected items from this listbox inside
the tapestry class. How can
Hi,
I am using Tapestry with Ajax via the xtile component. Here the ajax
thread returns me results for a search which I can show in the page
using html, as xtile returns only .
Name
Go
-- Select --
I'm trying to find time to fix the IB, but I don't know if that will
make it into beta-1.
On 6/16/05, Warner Onstine <[EMAIL PROTECTED]> wrote:
> I have a small section on the InspectorButton (for 4.0) in my new book
> (it's about 2 1/2 pages) and I was curious to see if anyone actually
> uses the
Its open source - look at the code of ValidField, this should do...
ציטוט Lukasz Kucharski:
Hi.
How to implement validation in a form component that implements
IFormComponent so that it uses delegate and other validation objects
from the page it is contained with.
I have validation well imple
>
> How to implement validation in a form component that implements
> IFormComponent so that it uses delegate and other validation objects
> from the page it is contained with.
>
> I have validation well implemented in one of the basePages of mine and
> I would like to make new form component use
call it from inside a listener method. then set the listener attribute
of your submit button/link to call this listener method.
ציטוט Muhariz Jabeer:
hi guys, I have a custom component which iterates over a collection class to
dynamically
generate fields in a table using ListEditMap and ListEd
It appears to be an issue related to line endings; if you are on
Windows it works, on Unix it fails. Sorry.
On 6/16/05, Mark Dillon <[EMAIL PROTECTED]> wrote:
> I got around the build problems by editing
> "framework/src/scripts/TestUpload.xml" and commenting out 3 blocks
> that look like this:
>
I would think it should be something like
--- code
private static FileData _myFileData;
public FileData getFileData() {
if (_myFileData == null)
_myFileData = readFile(getRequestCycle());
return _myFileData;
}
private FileData readFileData(IRequestCycle cycle) {
ServletContext sc =
cycle
Check out the
- org.apache.tapestry.disable-caching
- org.apache.tapestry.enable-reset-service
configuration attributes at
http://jakarta.apache.org/tapestry/current/UsersGuide/configuration.html.
(They are available in Tapestry 3 as well.)
Br,
Norbi
- Original Message -
From: "Rife
Nope,
the only logging I'm getting is from the "hivemind.LoggingInterceptor"
(don't think this is log4j though). Any other ideas?
-J.
Nick Stuart wrote:
That should be all you have to do (place log4j.properties in the class
folder). Is it displaying any kind of logging? You may want to set
Hi,
If you are using the Tapestry Palette plugin for Eclipse
(http://tapestrypalette.sf.net) you can access a jar containing a version of
DynamicBlock which should work with
components from other namespaces.
In Eclipse use Window > Preferences > Tapestry Palette > Remote Libraries
add the URL
Olve Hansen intermedia.uib.no> writes:
> I have made a class that rethrows exceptions on a list, so that I can
> pass some exceptions on to some servlet filters.
>
> I overrode the activateErrorPage in BaseEngine:
> protected void activateExceptionPage(IRequestCycle iRequestCycle,
> Respo
hi guys, I have a custom component which iterates over a collection class to
dynamically
generate fields in a table using ListEditMap and ListEdit. I have a method
called
"adMore" which is to be triggered by a click to a Submit button in the
component.
Its purpose is to post to the server, a r
Can someone please give me some tips as to how to use my own log4j.properties
file to perform logging. I can't seem to get this working, and I need it
desperately. I placed log4j.properties in /WEB-INF/classes (and tried some
other stuff) but that didn't work.
Put also commons-logging.proper
Warner Onstine wrote:
I have a small section on the InspectorButton (for 4.0) in my new book
(it's about 2 1/2 pages) and I was curious to see if anyone actually
uses the Inspector beyond the initial learning of how Tapestry works.
Right now I'm considering axing the section.
I've figured ou
Doh!
URLEncoder.encode(value,enc)
URLDecoder.decode(value, enc)
-Original Message-
From: Hensley, Richard [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 11:17 AM
To: Tapestry users
Subject: [Tapestry 4.0] ServiceEncoder Question
I have a ServiceEncoder that encodes file name
Rife, Brandon wrote:
During development when I modify templates and classes and hot-deploy
those files to my app server I find that I have to restart the app
server anyway because of, I assume, Tapestry's caching. That's great
behavior for a production environment but kind of a pain for
develop
I have a ServiceEncoder that encodes file names into a url. In one
particular case, there is a pound sign in the file name. Pound sign is not
being encoded in anyway, so the browser thinks it is an anchored link.
This is my encoder method.
/**
* @see
org.apache.tapestry.engine.ServiceEnc
I got around the build problems by editing
"framework/src/scripts/TestUpload.xml" and commenting out 3 blocks
that look like this:
Contents match.
If you're failing in the same place as I was, this should take care of
it for you temporarily.
HTH,
Mark
On 6/15/05, Chris Conrad <[EMAIL PRO
So whats going on with you logging? Are you not getting any logging at all or
are you getting everything?
Is the log4j.jar in your classpath?
Regards,
Saqib
SAGA D.C. GmbH Phone : +49 (0) 6731-9428-0
B
I came across the same problem so i changed the component implementation.
Here's the changed component.
Hope this helps.
Cheers
Hugo
phillip rhodes wrote:
I am using a cool little component someone wrote
called DynamicBlock.
Unfortunately, I just figured out that DynamicBlock
appears to
Now that you mention it, I have to say that, even though during
development I always
enable the Inspector, I find that i never actually use it.
When my pages have errors, I just go back to the code and fix them
(and anyway, the Inspector isn't available when on error - perhaps it
should)
And wh
Check out this great article on why this is occurring.
It has nothing to do with tapestry.
http://www.patrickpeak.com/page/patrick/20050614#your_web_app_is_leaking
--- "Rife, Brandon"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> During development when I modify templates and
> classes and hot-deploy
>
Jan,
The log4j page has some links about why Jakarta Commons-Logging is a problem
for web containers when the logging tool of choice is Log4J. It also has
some work arounds and an article.
-Original Message-
From: Jan Vissers [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 8:59
Hi,
During development when I modify templates and classes and hot-deploy
those files to my app server I find that I have to restart the app
server anyway because of, I assume, Tapestry's caching. That's great
behavior for a production environment but kind of a pain for
development. Is there a T
I am using a cool little component someone wrote
called DynamicBlock.
Unfortunately, I just figured out that DynamicBlock
appears to be limited to finding and rendering
components within the same library that it is declared
in.
It subclasses the BaseComponent and uses the
getComponents() meth
I have a small section on the InspectorButton (for 4.0) in my new book
(it's about 2 1/2 pages) and I was curious to see if anyone actually
uses the Inspector beyond the initial learning of how Tapestry works.
Right now I'm considering axing the section.
-warner
-
That should be all you have to do (place log4j.properties in the class
folder). Is it displaying any kind of logging? You may want to set the
org.apache class to at least INFO level as there is a lot of stuff
spit out from that.
-Nick
On 6/16/05, Jan Vissers <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
Hi,
Can someone please give me some tips as to how to use my own
log4j.properties file to perform logging. I can't seem to get this
working, and I need it desperately. I placed log4j.properties in
/WEB-INF/classes (and tried some other stuff) but that didn't work.
Thx.
-J.
--
Cumquat Inform
Why not have your action views be pages (guessing they are components
now), as they are the main content holders right? And then have the
surrounding menu/tabs being components in a Border type element? I
don't think you would really loose anything here, and you don't have
to include everything on
It looks like Tapestry really doesn’t like not having components declared at
deployment-time. So, we have had to declare all views in one template file
and based on a whether a view has been selected that component skips its
pageBeginRender method. Otherwise, all components go through a
pageBeginRe
Hi.
How to implement validation in a form component that implements
IFormComponent so that it uses delegate and other validation objects
from the page it is contained with.
I have validation well implemented in one of the basePages of mine and
I would like to make new form component use it. Anybo
Good day Tapestry Fans!!
I am looking for a validating date entry component of the type that has 3 boxes
to enter month, day, year in. I think the dateSelector is great, but just
doesn't fit the needs of the project I'm working on. So if any one has a
component like that out there and are w
Well I am trying to use the property. Here's the type of code I'm using:
public abstract MyObject getMyObject();
public void pageBeginRender(PageEvent event){
if(getMyObject() == null){
addError("MyObject is null"); //ALWAYS goes here
return;
}
}
This works!
The reason I'm
Thank you for your reply! Could you give me an example?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You should do it on one of the cycle methods, so you have access to the
servelt, and use the servlet context api to access the file.
ציטוט Joerg Bergner:
Hello to everybody!
Please don't laugh about my question. But I didn't find any answers to it.
I want to read in data from a xml-file, whi
Hello to everybody!
Please don't laugh about my question. But I didn't find any answers to it.
I want to read in data from a xml-file, which is stored in 'webapps/myWebApp/
data' folder. I want to do that in the constructor of the java class of a page.
Is that possible? If yes, how can I do that
tor, 16,.06.2005 kl. 09.48 +0100, skrev Daniel M Garland:
> Hi all,
>
> I'm a beginner with the Tapestry framework, but I've read a lot of
> tutorials and Mr. Lewis Ship's book. One thing that I didn't
> read/understand much about was an effective way of dealing with Tapestry
> exceptions.
>
Is there a simple way to make an external link to the complete state of
a page? If I have a few tables and other components, is there a way to
make an url of that page I can give to someone else (or bookmark it) so
the page is restored?
I know of the existance of the ExternalLink, but I don`t und
An update:
I see now from the Tapestry source that the EngineServiceLink (made from
constructLink in AbstractService) only encodes the url if the service
calls constructLink with the stateful flag set.
I misinterpreted this as the Service/Page being stateful, and that
something would be put in th
Hi,
I have a page that implements IExternalPage, and I'm passing a single
parameter in through the activeExternalPage() method. This parameter is then
decoded and used to set the value of 30-odd other attributes on the page.
These attributes are then passed through to a component.
This seems
Hello all!
Could I separate Tapestry logging from WebSphere console logging without
setting up classloading policy PARENT_LAST ?
In case of PARENT_LAST i coudn't use WAS authentification mechanizms :(
And default way (placing commons-logging.props in WEB-INF/classes)
without PARENT_LAST doesn
Do you want a null as one of the parameters in the parameter array?
If so, you would want "parameters={null}".
Cheers,
Mark
On 6/15/05, The Chris Method <[EMAIL PROTECTED]> wrote:
> Why would you want to do that?
>
> "null" is valid ognl, though. That should work, I've done something like
> tha
Ron,
So if I have a method that retrieves the values for a page property, is
it best to put this method in every get/set that requires the property
to be set, or to have it placed just once in prepareForRender?
Cheers
Dan
Ron Piterman wrote:
You don't have to override renderPage for that. I
Hi all,
I'm a beginner with the Tapestry framework, but I've read a lot of
tutorials and Mr. Lewis Ship's book. One thing that I didn't
read/understand much about was an effective way of dealing with Tapestry
exceptions.
For instance I am creating a Tapestry page that creates a property fro
I am currently making a component for handling images streamed from a
database using a custom service and a custom component.
The version of Tapestry is 3.0.3
This component tries to make a context-asset from the link given from
the service, but fails:
ILink resourceLink = resourceService.getLi
Look at org.apache.tapestry.form.translator.NumberTranslator in the 4.0
branch.
It should be easy enough to adapt this to the 3.0 IValidator interface.
Paul
Eric Schneider wrote:
Hi,
Has anyone created a subclass of NumberValidator that includes a
format attribute similar to the DateValida
I wanted to try out the new annotations support in Tapestry 4 but
could not get a cvs checkout from tonight to build because of JUnit
test failures. Is cvs going to be in a buildable state soon? Or am
I better off waiting until alpha-4 is released?
--Chris
-
> doesn't get picked up. It only works if I place the hivemodule.xml in
> WEB-INF/classes/META-INF. Is this correct?
>
It should work with WEB-INF, but it's a 1.1 feature, I believe. So, if
you're
using 1.0, it won't work.
-
T
Or:
a.. /WEB-INF/applicationId/hivemodule.xml
a.. /WEB-INF/hivemodule.xml
Check out
http://jakarta.apache.org/tapestry/current/UsersGuide/hivemind.html
Br,
Norbi
- Original Message -
From: "Jan Vissers" <[EMAIL PROTECTED]>
To:
Sent: Thursday, June 16, 2005 7:41 AM
Subject: Tapestr
Hi,
Investigating how to use HiveMind combined with Tapestry, I came to the
conclusion that my hivemodule.xml when placed in the WEB-INF directory
doesn't get picked up. It only works if I place the hivemodule.xml in
WEB-INF/classes/META-INF. Is this correct?
Thx.
--
Cumquat Information Tec
67 matches
Mail list logo