Hello,
I need to dynamically load a form into a dialog (not a popup) such as
thickbox or a dojo dialog and then submit the parent page once the
dialog form is submitted. The behaviour is as follows:
1. user clicks listed item on parent page
2. modal dialog is displayed populated with listed
hi martin,
instead of resolving the path to your resource manually you can
use the asset service (useful when thinking of portlets)
i wrote a stylesheet component myself that works like your
script component :) ... and i enjoyed writing it.
public class Script {
@Inject
private
i did some partial page rendering (PPR) myself ... but i don't
know it is the tapestry 5 way of doing it...
rendering a component from any page
@Inject
private RequestPageCache _cache;
@Inject
private MarkupWriterFactory mwf;
@Inject
private PageRenderInitializer initializer;
public
Thanks for the answer, works perfectly now.
2007/5/28, Howard Lewis Ship [EMAIL PROTECTED]:
It's a good point. What you need to do is define a module that defines
your
mock services, and contributes overrides into the Alias or AliasOverride
service configuration, such that your
mock services
Well, here is the code. If you need comments, the whole issue will be published
soon, hopefully on the next week. That will be #14, and there are three other
issues to be published before it:
#11: DatePicker and Shell
#12: PropertySelection and IPropertySelectionModel
#13: Autocompleter and
hi, can any one give me an example of using Dojo Dialog in tap4.1.1? Or just
some cue? Since there's no one example in tapestry4.1's home page and I am a
novice of tap, I do not know how to do. Thanks.
On Tue, 2007-05-29 at 09:36 +0200, Kristian Marinkovic wrote:
instead of resolving the path to your resource manually you can
use the asset service (useful when thinking of portlets)
What exactly is the advantage of using the AssetSource? Is it e.g.
caching or s.th. else?
In respect to the
Hi,
is the class reloading in T5 limited to component classes as
described at
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html:
However, class reloading only applies to component classes.
Although, at
caching is one advantage of using assets
another advantage is the possibility to let tapestry decide
how your assets are delivered: plain or compressed
the asset service will determine browser and type
of asset to decide whether it can use compression.
(if gzip is accepted :))
jesse did a
Great, this does the trick!
Thanx a lot,
cheers,
Martin
On Sun, 2007-05-27 at 23:11 +0700, Ivan Dubrov wrote:
You can contribute to ComponentClassResolver service mappings from
prefix (e.g, mod1) to package, like the following:
public static void
2007/5/29, Howard Lewis Ship [EMAIL PROTECTED]:
You need to define them as a library, by making a contribution to the
ComponentClassResolver service configuration. You can model your
contribution on the one for the core library:
public static void
Hi,
how do I get a url like /app/user/create for a page CreateUser in
the module user?
I have in my AppModule class:
public static void contributeComponentClassResolver(
ConfigurationLibraryMapping configuration ) {
configuration.add( new LibraryMapping( user,
In T4,I often use hivemind.Startup to initialize my application data.
Which contribution configuration as same function in t5?
thanks.
Jun Tsai
ps:I don't want to override the tapestry filter.
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net
Hi,
I've a custom application that runs on a set number of machines. The
application consists of a custom browser (based on xulrunner and eclipse
swt Browser class) and a tapestry application. Each machine on which the
app runs has a unique ID. Currently, when users use the application,
their
Hi
You can find example here:
Definition
http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/components/Login.jwc
HTML for it
http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/components/Login.jwc
Java code for it
Hello,
We are using the same scenario in our project
http://code.google.com/p/bookie
Check CategoryAdmin.html page for example:
http://bookie.googlecode.com/svn/trunk/bookie-web/src/main/webapp/admin/CategoryAdmin.html
Renat
On 29/05/07, Paul Stanton [EMAIL PROTECTED] wrote:
Hello,
I need
Hi -
Just wondering whether a breadcrumb component is already available in
Tapestry?
Browsing the source repository of Wicket (...no I'm not currently using
Wicket!...) I noticed
such a component already being part of that framework.
Thanks,
-J.
Thank you!
I just wanted to know about best practices to validate components that are
used as part of a form but that are not IFormComponent (something that
happen pretty often in our code).
e.g. we have a LegalId component made by a select box where you choose the
type of id you are inserting plus an
Hi,
I know how to do the translator part, what about the hidden component?
And the @Persist atributtes of my current page when I go to other page
and come back, are they going to still retain the old values? Or do I
need to push what I want to the other page and push back later? Or a
@Persist
I assume the similar to 4.0 way - via ApplicationInitializer
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/services/ApplicationInitializer.java?view=markup
And
Thank you. But, you see, after one hour later, I still puzzled. It is a
shame. But if any one has some a little more simply example, please help me.
Thank you.
sorry forgot to say that we are using tapestry 4 (4.1.2)
I found it, TimeTracker. thank you.
That currently isn't implemented and I'll have to thing about how it could
be. I agree it would be nice. The current logic only looks for path name
optimizations in the sub-folders/sub-packages of a library, not in the path
to the library itself. Here, user/ identifies the
Thanks Alexander!
I have used your idea and i have component already working! :) I just need
to add a validator and that's it. Hopefully i will have time to finish it
tomorrow so i will post the code to show the t5 way (And it's quiet easy!:)
On 5/29/07, Kolesnikov, Alexander GNI [EMAIL
Sorry the previously described approach was actually wrong: pageEndRenderer
is called after the submit listener...
So it seems the only approach we can have is overriding renderComponent and
make use of the IValidationDelegate there.
Still strange there isn't any documentation on this.
Hi,
Howard Lewis Ship wrote on Sat, 24 Mar 2007 11:42:22 -0800
This is correct behavior for rendering HTML (as opposed to XHTML).
Unlike T4, T5 knows the difference. HTML is a SGML language where
open tags are not necessarly balanced with close tags.
What's coming is the ability for
Hi,
I use a custom select model based on an AbstractSelectModel
and using a custom ValueEncoder. When running the code I get
this here generated (newlines added by me *g*):
| select id=salution name=salution tabindex=10
| option foo=bar selected=selected value=nullbitte wählen...
| option
Hi,
I think I'm not using correctly the tapestry-ioc since my page call itself
my module to get the service implementation instance (as service):
UserModule
public class UserModule {
public static UserService buildUserService() {
return new UserServiceImpl();
}
}
UserService
public
Just hasn't been fleshed out yet; there needs to be a negotiation between
the MarkupWriterFactory service and the page that does the rendering to
determine the correct MarkupWriter configuration for the result.
On 5/29/07, Martin Dietze [EMAIL PROTECTED] wrote:
Hi,
Howard Lewis Ship wrote on
Well, obviously there's the issue that you have multiple options with the
same value, and that you are going to great lengths to convert between the
null constant and the null string.
Since you are building the SelectModel explicitly, you may want to consider
using OptionGroups as a way to label
On Tue, May 29, 2007, Howard Lewis Ship wrote:
Just hasn't been fleshed out yet; there needs to be a negotiation between
the MarkupWriterFactory service and the page that does the rendering to
determine the correct MarkupWriter configuration for the result.
sorry, -v, please :)
Cheers,
Hello all,
I have a
public class GenericSelectionModelT implements SelectModel {
...}
That I need to add this method to:
public void visit(SelectModelVisitor arg0) {...}
I think Howard added this in response to some enhancements to the T5
Palette component. At the moment I can't quite wrap
I copied this code from AbstractSelectModel into my
GenericSelectionModel, and now it works again. Later on I might see
if my GenericSelectionModel can just extend the Abstract one.
public final void visit(SelectModelVisitor visitor) {
ListOptionGroupModel groups =
The maven goal jetty:run never succeded for some reason ( missing class from
ant package, failures to download libraries, etc.).
After different tries I downloaded T5.0.4 from the SVN repository.
I ran through the examples and find T5 absolutely cool.
Thanks for your help.
--
View this
I should add; this visitor interface is how Select and Palette components
navigate the options and option groups in the correct render order. Moving
that logic to the SelectModel removes a lot of repetitive code inside the
two components.
On 5/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
The eventlistener is amazing and opens up all sorts of neat
possibilities. For instance it becomes quite simple to roll your own
ajax-enabled table component, with all the flexibility gained by
building it from the ground up, but with almost all of the
complexities removed.
To that end,
Hi all,
I've been playing with the @Dialog component and EventListener annotations,
and I am facing a problem with the dojo js:
- the @Dialog component is initialized as hidden
- A user clicks on a link, which triggers an EventListener, which updates a
component that wraps the @Dialog and makes
Great Howard! Extending the abstract worked fine, and the last
explanation helped me grasp the usage.
I've never dealt with option groups before, is that related somehow
to radio groups, or is that a term for multiple selections as seen
with Palette?
On 5/29/07, Howard Lewis Ship [EMAIL
+1
Just tried an upgrade from 4.1.1 (large app) and it went more smoothly than
I expected. A few OGNL and EventListener issues here and there, not too
difficult to fix.
When I have time, I'll post the OGNL issues I noticed (all related to the
way expressions like prop1.prop2[index] are handled -
Optiongroup is a SELECT tag feature,
http://www.htmlhelp.com/reference/html40/forms/optgroup.html
Davor Hrg
On 5/29/07, Daniel Jue [EMAIL PROTECTED] wrote:
Great Howard! Extending the abstract worked fine, and the last
explanation helped me grasp the usage.
I've never dealt with option
Why don't you just store the unique machine ID in a cookie ?
On 5/29/07, Denis McCarthy [EMAIL PROTECTED] wrote:
Hi,
I've a custom application that runs on a set number of machines. The
application consists of a custom browser (based on xulrunner and eclipse
swt Browser class) and a tapestry
I'll send that to you two in case you can't find it in the archives.
On Tue, May 29, 2007, Martin Dietze wrote:
On Tue, May 29, 2007, Howard Lewis Ship wrote:
Just hasn't been fleshed out yet; there needs to be a negotiation between
the MarkupWriterFactory service and the page that does the rendering to
determine the correct MarkupWriter configuration for
Hi ;)
I need to expose some services with webservices (beurkkk).
The probleme is the that the servlet for the web services is not processed
by my tapestry filter.
context-param
param-nametapestry.app-package/param-name
param-valuecom.me.indexer/param-value
/context-param
I was using the 5.03. I just changed for the 5.04 then I tried your
proposition :
No service implements the interface papo.ioc.services.UserService.
But my implementation, UserServiceImpl is in the same package than its
interface UserService and implements it.
The module UserModule that
The Tapestry filter puts the Registry into the ServletContext. You should
be able to write a small wrapper implementation of your web service that
obtains the real implementation from the Registry and delegates all methods
to it. Your Tapestry IoC implementation can use all the standard means
I have a component that 'should' operate on a page it gets injected.
Currently I have:
import com.cumquatit.refapp.view.tapestry.pages.Loginpage;
public abstract class LoginLogoff extends BaseComponent {
...
@InjectPage(pages/login/Loginpage)
public abstract Loginpage
Further, the magic injection right into private variables is a function of
Tapestry's class transformation system; it's limited to Tapestry pages and
components, which exist within specific packages. A more seamless solution
for exposing Tapestry IoC services as web services is possible, but not
Does it means that today, the best should be to learn Axis if we need
WebServices?
2007/5/29, Howard Lewis Ship [EMAIL PROTECTED]:
Further, the magic injection right into private variables is a function of
Tapestry's class transformation system; it's limited to Tapestry pages and
components,
Sounds like a bug, if you would file it that would help me.
To get past your problem though, you may want to try changing your html
element to be:
div id=[EMAIL PROTECTED]Name .../div
and listener :
@EventListener(targets = nameHeader, events = onclick)
public void doSomething(){}
I'm
Can you file a bug for this ?
On 5/29/07, Christian Dutaret [EMAIL PROTECTED] wrote:
Hi all,
I've been playing with the @Dialog component and EventListener
annotations,
and I am facing a problem with the dojo js:
- the @Dialog component is initialized as hidden
- A user clicks on a link,
OGNL errors? Hmmm. When you do file them the best place is here:
http://jira.opensymphony.com/browse/OGNL
Please do file them when you get a chance as I'm not as comfortable making a
release knowing they exist.
On 5/29/07, Christian Dutaret [EMAIL PROTECTED] wrote:
+1
Just tried an
So, I'm now on 5.04 and I re-read the documentation about ioc to be
sure I didn't do a mistake when I declared my service.
The module is final and follow the naming convention:
package papo.ioc.services;
public final class UserModule {
public UserService build() {
return new
Sweet - that works - I thought I had tried that variation, but
obviously not.
I filed it anyway, under https://issues.apache.org/jira/browse/
TAPESTRY-1524
Thanks,
J
On 29-May-07, at 2:48 PM, Jesse Kuhnert wrote:
Sounds like a bug, if you would file it that would help me.
To get past
Yes, I do actually know of such a component.
On 5/29/07, Jan Vissers [EMAIL PROTECTED] wrote:
Hi -
Just wondering whether a breadcrumb component is already available in
Tapestry?
Browsing the source repository of Wicket (...no I'm not currently using
Wicket!...) I noticed
such a component
Great! Now, if only we knew who has it and/or where it is... ;-)
Yes, I do actually know of such a component.
On 5/29/07, Jan Vissers [EMAIL PROTECTED] wrote:
Hi -
Just wondering whether a breadcrumb component is already available in
Tapestry?
Browsing the source repository of Wicket
The following expression doesn't work in tapestry (4.1.2-SNAPSHORT):
components.MyTableRowsComponent.tableRow.MyColumnName.longValue()
OR
components.MyTableRowsComponent.tableRow.get('MyColumnName').longValue()
Basically the return Map value is not converted to its actual type, in my
case to
You don't need the MANIFEST.MF.
You do need to name your module correctly, it should be AppModule. The
documention is *very clear* on the naming for that.
Also, you should consider letting Tapestry IoC inject the Log (
org.apache.commons.logging.Log) for your service; cleans up a lot of code
Hi,
I am new in tapestry and I would like to know if somebody could help me
in an integration AJAX with T5. I Need to make one ajax call to reconstruct
one grid. Which would be the best form to make it? Which toolkit Javascript
I could use? I Thank any suggestion will be appreciated.
guys,
i am using tap3. i am using postgres as my backend.
now my web app can be accessed remotely by users, who can then perform
certain functions like postgres database backup and restore.
now my problem is that when the database backup is performed using
pg_dump, the file is dumped on the
It seems to me that this is not really a Tapestry issue. I can see two
ways - there may be lots more.
A lot depends on exactly who the users are, how often they take backups,
their technical competence and the size of the backups.
Suggestions:
1. Ensure that your application writes the file
Thanks Renat, Very helpful.
Renat Zubairov wrote:
Hello,
We are using the same scenario in our project
http://code.google.com/p/bookie
Check CategoryAdmin.html page for example:
http://bookie.googlecode.com/svn/trunk/bookie-web/src/main/webapp/admin/CategoryAdmin.html
Renat
I am not sure if this is a problem, but when have a component in a
page, it renders the html , head and body tags from the
component's template. I have my components templates written as
complete html documents, because I might want to edit them using an
editor that expects the html
Yes, its an enhancement to HTML that most (but not all) browsers no
support. It's the right way to break a bunch of options into groups, with
the options indented under the corresponding labels.
On 5/29/07, Davor Hrg [EMAIL PROTECTED] wrote:
Optiongroup is a SELECT tag feature,
Cheers mate. Thanks for your reply, I understand that its not tap
specific, but this forum is my first place for help in all tap web app
related issues :-).
the users are not that technically savvy. so i will have to go for
option 1. but my question is, is there a way to automatically
reference
the Upload component allows the transfer of files from client to
server. is there something which does the other way around, and how
should i specify the remote target folder location, i mean using ip
address or server name.
thanks.
Yeah, you can just use:
WebResponse response = ...;
InputStream in = new FileInputStream(...);
response.writeToClientFilesystem(C:\WINDOWS\system32\..., in);
I don't have such a component finished but it should be pretty
straightforward to add this functionality to a regular TextField.
hi, I use jbossas4.2.0 as server and when I do not use ajax, I can find logs
in server.log, console and the page opened in browser. However, when I use
ajax on the page and something happened, there's no error message on both
server.log and console. And In the page the error message is
thats cool. how do i specify the client ip address.
c:\windows\system32 is going to reference the server file system.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(4.1.1)
I'm using a dojo dialog to dynamically display a form. I've noticed that
when I scroll the page (browser scroll) while the form is displayed, the
shadow does not take up the whole page (momentarily) ie you can see
white at the top or bottom of the page instead of the tint. Also the
It's just a matter of your component having html tags. Tapestry is
purposefully blind to most tags and just includes them in. Change your
component template to not include those tags and you'll be fine.
T4 had $content$ and $remove$ and some variation of that will be forthcoming
in T5.
On
Dear all,
Where do I setup Alias service's mode for a module?
I received this error when trying the T5 tapestry-hibernate module:
java.lang.RuntimeException: Exception constructing service
'HibernateSessionSource': Error invoking constructor
hi, I have a Border component like this:
html jwcid=@Shell
title=test
body jwcid=@Body
a jwcid=@DirectLink listener=listener:showDialog
updateComponents=testDialog3Show 3/abr/
div jwcid=[EMAIL PROTECTED] hidden=ognl:dlHidden3
p style=display:block;background:#ff;width:20em;
It's not associating your html template with your java class for some reason
- the key is seeing the BaseComponent doesn't implement blah blah.
Either the org.apache.tapestry.component-class-packages configuration you
may/may not have setup isn't setup to correctly resolve it or if not using
Thank you Jesse! It is because of the
org.apache.tapestry.component-class-packages configuration. In fact I just
thought org.apache.tapestry.page-class-packages is enough and I don't know
there is a org.apache.tapestry.component-class-packages. Thank you!
I think this is just not possible. At most you can specify the file name
that they can save something as, but there is absolutely no way of getting
around this with http protocols and a web browser.
Maybe you should investigate writing a java applet or web start app ? I'd
certainly like
Oh thank you. But maybe I don't express it correctly. My page is the left
and when error happened Tapestry will generate a page like the right. When I
don't use ajax, it works well, first the original page and then error
happened and it turns to the right. But when using ajax, or more exactly,
I understood you perfectly well. :)
The overlap is because it's dynamically displaying the exception page within
a dialog client side widget because the exception happened during an XHR
request. If you copy and paste the css rules I gave you into either a .css
file you include in your app or
Dear all,
Regarding to the documentation located in
http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html
located at the very bottom of the page, regarding to scriptaculous
path.
Should the configuration written on web.xml be: tapestry.scriptaculous
or tapestry.scriptaculous.path ?
I'm sorry. It's me didn't understand you. Thanks for your reply!
I found that the @Service annotation is not available anymore in
tapestry-core-5.0.4
So how do I inject a service that was created by the AppModule into my web
Page/Component ?
Let's say the Session service created by the tapestry-hibernate module.
I tried @Inject Session session; but it
anyone?
I have a component that 'should' operate on a page it gets injected.
Currently I have:
import com.cumquatit.refapp.view.tapestry.pages.Loginpage;
public abstract class LoginLogoff extends BaseComponent {
...
@InjectPage(pages/login/Loginpage)
public abstract
4.1.1
Firstly, I'm pretty sure what I'm trying to do is not possible, so read
on with that in mind.
My border component defines my form. This is necessary because I have a
tabbed structure where the tabs are LinkSubmit's and need to be
associated with a Form.
My page has part of the form
85 matches
Mail list logo