I've just tried a javascript writeback hack (trying to keep it
tapestry-ish, yet it's a hack for sure)
basically, the dialog's form elements are Any's so they populate
correctly, but don't submit to tapestry. then when the submit button is
clicked they Any's values are sucked into some hidden
Somewhere in the documentation it says that all pages are components,
so i guess that all components and pages (that are special kinds of
components) will automatically reload.
2007/5/29, Martin Grotzke <[EMAIL PROTECTED]>:
Hi,
is the class reloading in T5 limited to component classes as
descr
All, below is a sample of what I'd like to be able to do, but I can't seem
to figure out a way to make it work
Is there a way to do this or a binding that would do this? Basically I need
a way to dynamically instantiate components at runtime.
-thx, Jon
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 c
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")
> pub
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 didn't
I'm sorry. It's me didn't understand you. Thanks for your reply!
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 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 dir
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,
doj
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 everyo
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 Andreas added some fixes to give the exception dialog a better set
of default style rules (where previously I provided none at all), but for
now you can define this in a css file to get some friendlier styling for
your dialog:
.exceptionDialog {
overflow: auto;
display: block;
ma
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
that
hi, I have a Border component like this:
Show 3
This is content hidden in a Dialog.
Close
And in Border.java I have a method:
public abstract class Border extends BasePage {
public void showDialog() {
Dialog dlg = (Dialog) getComponent("testDialog3");
dlg.
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
org.apache.tapestry.internal.hibernate.HibernateS
It's just a matter of your component having 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 5/29/07, D
(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
di
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]
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 unreadable
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.
Mar
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.
---
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 a
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,
http://www.ht
I am not sure if this is a problem, but when have a component in a
page, it renders the , and 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 specification.
Should my
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
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
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 loc
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.
Regards,
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
th
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 jav
i don't know which is this. is there in componentRefence?
thanks for your help
alvaro
On 5/29/07, Jan Vissers <[EMAIL PROTECTED]> wrote:
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 PROT
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 repo
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 componen
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 yo
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 UserServiceImpl(
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 upgr
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, wh
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:
Name ...
and listener :
@EventListener(targets = "nameHeader", events = "onclick")
public void doSomething(){}
I'm assuming the bug has to do w
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
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 no
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 getLogi
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 of
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 contai
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.
tapestry.app-package
com.me.indexer
app
org.apache.tapestry.TapestryFilter
app
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 configurat
I'll send that to you two in case you can't find it in the archives.
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
try:
@Inject
private UserService _userService;
you haven't mentioned the version
code above is for 5.0.4, I'm not sure for older versions
Davor Hrg
On 5/29/07, Blackwings <[EMAIL PROTECTED]> wrote:
Hi,
I think I'm not using correctly the tapestry-ioc since my page call itself
my module to ge
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 gr
+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
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 PROT
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
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, I
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:
Hint #1: Connect to the source (that "arg0" means you haven't connected the
JAR to source, so you miss out on all the Javadoc).
Hint #2: I put the implementation of this into a base class you can extend
from.
On 5/29/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Hello all,
I have a
public class
I found a note somewhere down on some page.
I used
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/
when
running maven.
I changed the quickstsrt/pom.xml: to
5.0.5-SNAPSHOT
and now I even managed to download that version (without problems)!
Regards, Robert
--
View this
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 mes
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) {
List groups = getOptionGroups();
Hello all,
I have a
public class GenericSelectionModel 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 my
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,
Ma
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 labe
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
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 inte
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*):
|
| bitte wählen...<
| option disabled="disabled" selected="selected" value="null">---<
| option value="MR">
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 T
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.
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 PROTECTE
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
org.comp.app.user.pr
I found it, TimeTracker. thank you.
sorry forgot to say that we are using tapestry 4 (4.1.2)
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.
Hi,
I'm trying to get Tapestry 3 to produce proper form markup but I've hit
a few problems:
1) Tapestry doesn't seem to let me insert markup between the form tag
and hidden fields, this means that the hidden fields cannot be put in a
block level element so I can't get them to validate as xht
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
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/ja
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 ann
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 inp
Thank you!
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.
---
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
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
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
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,
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(
Configuration configuration ) {
configuration.add( new LibraryMapping( "user",
"org.comp.app.user.presentati
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
contributeComponentClassResolver(Configurati
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
> contributeComponentClassResolver(Con
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
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
http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload
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 Re
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.
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 Inli
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
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 Obje
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 AssetSo
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 i
94 matches
Mail list logo