Frank wrote:
Hi,
How do I get parameters from a XML file ? Ex. for configure my JDBC driver.
Regards
Using something like Cayenne for easy to use data access ...
(http://www.objectstyle.org/cayenne/)
or
You could use environmental entries in the web.xml:
adminUsername
hi,
I am using JBoss Portlet 2.2 plus T4 based portlet. What I am trying to do
is to control the display of a Login form in a portlet. My idea is having a
Login page with username and password input fields, and an Empty page
displays nothing. In the Login's pageValidate() method, I will throw out
I have an email field:
Then in the Java code:
@Persist
public abstract String getEmail();
Situation:
1. Users enters a perfectly valid email and submits, but some other field
fails (the field is NOT using a validators binding, but fails within a
validation method call that f
I can think of the ways of doing it.
Method 1 :
'this' in ChartAsset(getRequestCycle(), this) is of
type IComponent,
Put the following annotation in 'this' java file
@InjectObject("engine-service:Chart") public abstract
IEngineService
getChartService();
Then you can pass the chart service to
Seeing the stack trace would help.
You must remember that much of Tapestry is dependent on the servlet
invoking some setup inside Tapestry. Further, ASOs are very dependent
on the current HttpServletRequest and the ApplicationStateManager will
not opererate when this information is not available
> According to a poll (http://java.about.com/b/a/225580.htm), more people
> will use Tapestry than any other Java web frameworks.
This is an interesting poll: the first result was that Wicket is the one, now
it is Tapestry
theserverside.com was built using Tapestry, they have an article how they
What is the exception? I had a similar problem
garyreed wrote:
I have a hivemind service that needs to access a session scoped application
state object. I'm injecting the state manager into my service, and then trying
to user the ApplicationStateManager get method. When I do, I get an exceptio
I have a hivemind service that needs to access a session scoped application
state object. I'm injecting the state manager into my service, and then trying
to user the ApplicationStateManager get method. When I do, I get an exception.
Here's my configuration and exception dump.
public class Visi
I am not quite familiar with the workbench, but could imagine you should
create a CharAsset factory as hivemind service, and inject it to your
page/component.
Cheers,
Ron
Curtis Paris wrote:
I was looking through the workbench project, and had an issue with
upgrading it to be 4.0 compatible.
It has happened in a development environment but I have stopped the
server and restarted it and it still happens. It happens when I have
inheritance as shown below.
best regards.
Raul Raja.
Ron Piterman wrote:
Does this happen on a running system or in a developement env ?
I noticed this hap
Hi,
How do I get parameters from a XML file ? Ex. for configure my JDBC driver.
Regards
Shawn,
Thank you for your assistance. I managed to make my test applicaton
work at last.
I now need to modify my real application, so it works properly.
Next task is to learn about i18n with tapestry 4 ...
On 24/01/06, Shawn Church <[EMAIL PROTECTED]> wrote:
> Jabbar,
>
> I actually implemented
We have had success with creating our own ValidationDelegate Class and then
passing that whereever it is needed. There are times when we don't have access
to the one in the page or when we want to get errors without displaying them...
import java.util.ArrayList;
import org.apache.tapestry.vali
Hi Jesse:
Thanks a lot for your time, and yes, I read about @Script even my before
subject was titled "naming js functions problem" where I explained my
real problem (with my .script and .jwc) and the solution I found, but
isn't T4 way solution and with your tips I'm closer.
Bye and thanks f
I was looking through the workbench project, and had an issue with
upgrading it to be 4.0 compatible.
The big hit right now is dealing with the ChartAsset.
Currently the ChartPage.java code does a "new
ChartAsset(getRequestCycle(), this);". But, ChartAsset needs to have an
abstract metho
Hi,
We wrote version 2.0 of our product using Struts with many developers(~9). We
started with what we called an engine that needed a GUI, which we built in
Struts from scratch. 2.0 was a much simpler product (SAML 1.1 vs. SAML 2.0).
During the development, we had almost all 8 developers work
Oops, I wasn't clear. I'm working on the *builder*, the invisible,
behind the scenes scrapper that finds all the boo boos and makes the
error markers. The output of the builder feeds all the eye candy -
editors - syntax completion - jump to - outline views - most wizards -
etc.
No point in startin
Hi everyone,
many thanks for all who produce the framework.
for our current project we move to version 4. among many other
improvements, the input validation seems much cleaner now,
so we want to use it.
implemented our custom ValidationDelegate. no problem here. next,
we want a message block a
One final note, tap4 ~does~ make all of this a lot easier (I think, never
used tap3 ;) ) , but there may be some scenerios that aren't as intuitive.
I think this last leg of confusion will be solved in tap4.1 when the rewind
cycle is eliminated. I need an easier way to get at these id's and such a
If all else fails you guys should go look at the source for
http://tacos.sourceforge.net. Inside you will find all manner of scripting
Forms/For loops/etc that may show you some better examples of how this can
be done.
jesse
On 1/24/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> Yeah you've sor
Yeah you've sort of run into a chicken and egg problem. The unique id of
your submit component can't actually be determined until after it's been
rendered (at least not through normal means), so your goal should be to find
a way to create your javascript ~after~ these guys have been rendered.
You
Hi
Thanks for the responses but unfortunatley I thought of these things and
they dont work The results are:
- getName(): works outside a loop just fine, just not inside the loop
- getClientId(): neither works insdie or outide as it returns null
- getId(): this shouldnt be used as its the
Hi Jesse:
Firstly thanks for your time and tip, I resolve partially a problem with
java script with a component and I have to re-do an Id, calculate the js
function into the .script and into the .java and generate a lot of js
that can be replaced for only one function and passing two parameter
>Btw, ASP.NET is being pitched to my management...so half a
troll...reality.
Good luck. Microsoft raided my previous employer that had dozens of IBM
iSeries machines as their backbone running missing critical applications,
and through Microsoft's near flawless marketing they got their foot in th
You can find success stories here
http://wiki.apache.org/jakarta-tapestry/SuccessStories
On 24/01/06, spm <[EMAIL PROTECTED]> wrote:
>
>
> Richard Clark wrote:
> >
> > This strikes me as a "troll" -- a statement intended merely to
> > provoke people via annoyance. The simple fact is, your previous
Hi:
See this page http://www.thoughtsabout.net/blog/archives/52.html
inside has some links that you can see
Bye
JQ
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Richard Clark wrote:
>
> This strikes me as a "troll" -- a statement intended merely to
> provoke people via annoyance. The simple fact is, your previous
> message asked an incredibly broad question and that's exactly the
> type of question that tends to get ignored on mailing lists. (And,
Have you tried using IFormComponent.getClientId() ?
The id's of elements just can't be known ~before~ they are rendered, but if
you do it during the loop getId() or getClientId() should work just fine.
On 1/24/06, Jorge Quiroga <[EMAIL PROTECTED]> wrote:
>
> Hi Mike:
>
> I wait for a week to som
We recently needed to solve this problem as our translation team would
not accept spliting the sentence into three keys. We ended up using
placeholders in our properties file to insert the html into the
sentence, ie:
This is a sentence that has a link in it right {0}here{1}.
Where {0} is replaced
Hello,
Injection using annotations in tapestry is only for components and pages
AFAIK. The hivemind method of doing it is to use
instead of in your tag.
Hope that helps.
Phillip Rhodes wrote:
It's been several hours of attempts and google searches, but still no luck
in getting my global
Hi Mike:
I wait for a week to someone respond to me about something like you, but
without success. I cannot understand if For generates dynamically
components, why the developer cannot do it naturally or at least get the
index or something to diferenciate from one component to another.
Gener
It's been several hours of attempts and google searches, but still no luck
in getting my global object into my visit object (via annotations).
While I will continue working on this, if anyone has any pointers, I would
really appreciate it!
Thanks.
---
Geoff,
That sounds great, I am sure everyone appreciates all of the time you are
putting into it! Just a thought, would it be possible to release an early
version without all of the 4.0 upgrades? For instance, just the features that
were available in 3.03 (i.e. no annotations)?
Thanks,
Mark
Jabbar,
I actually implemented your test code yesterday with all of my changes,
so I can verify at least it works for me. FYI, I'm using the release
version of Tapestry 4.0 and Hivemind 1.1.
I didn't mention Home.java also needs to implement SelectablePage, so
that might be an issue. But if you
I have no idea why but for some reason that evoked images from bladerunner.
(all the puppets at dudes apartment)
On 1/24/06, Ivano <[EMAIL PROTECTED]> wrote:
>
> All Hail oursaviour Geoff!
> Struggling against the freetime-eating monster to help us survive in the
> development battle!
>
> Thanks a
All Hail oursaviour Geoff!
Struggling against the freetime-eating monster to help us survive in the
development battle!
Thanks a lot Geoff.
Ivano Pagano
Geoff Longman wrote:
Yes, Spindle currently ships with Tapestry 3.0.3 DTDs and does not
understand Tapestry 4 at all.
...
Once that's do
Well I find a solution for it, but I don´t know if is a better or at
least the T4 way solution.
I have to add an ID parameter to my new component and use it to generate
a javascript function name within .script and into the .java in order to
.html get the js function name via ognl, but has a l
Thanks for this.
I was under the impression that the property was stored in the session,
and thus available to all pages. I was wrong. It is indeed stored in the
session, but available only to the page for which this property has been
defined. Good to know. The per-page scheme is in fact a "Ta
Properties specified in your .page are indeed stored in the session, but
they are page-local. So myProp on page A is different than myProp on
page B. You could store myProp in your visit object so it is available
to all your pages or push the value from page A to page B (assuming you
navigate in
Everything is working as it should. When you persist a page property that
means that when you return to that page the property value will still be
there. It doesn't mean that the property will be available to other pages. I
think that what you are looking for is an ASO.
Hope this helps
Cheers
Hu
Uh, I that was a just a typo or a copy and paste mistake or
something. I get the expected result on my JVM, too.
On this subject: IIRC, Tapestry internally uses double instead of
BigDecimal in its number translator -- even if your final input
property is declared a BigDecimal or and integer
Hi all!
I have this in my page A's spec:
I want to retrieve this property (myProp is a String object) in page B.
I assumed that all was needed was to specify this in my page B's spec:
and then retrieve the property's value as usual from my page B's HTML
template:
But it does not
Three things come to mind:
-) When using backLink, it is almost always desirable to use a combination
of backLink/forwardLink so that behaviour makes sense in both directions.
-) Your backLink doesn't specify which areas of the page to refresh.
-) I'm not entirely sure that redirects are working
Hello Shawn,
Thank you for your reply. I've tried your suggestion but it doesn't work.
Inside the method 'public void selectedPage(IRequestCycle cycle) '
'PropertyUtils.isWritable(cycle.getPage(), "perSelectedPage") ' always
returns false
and inside the method 'public void pageBeginRender(PageE
Yes, Spindle currently ships with Tapestry 3.0.3 DTDs and does not
understand Tapestry 4 at all.
On the Spindle for T4 side: I've managed to nail down the "Eclipse
agnostic" part of Spindle (which is great for Hugo and tapidea) and am
now tackling the algorithm for 'finding & resolving' all the ta
Does this happen on a running system or in a developement env ?
I noticed this happens when changing a class or jwc - more specifically
when moving a parameter or property from the jwc to an annotation - so I
just have to make sure the application restarts when doing so...
Cheers,
Ron
Raul Raj
I had antiJARLocking and antiResourceLocking set to true for the web app
context, so I was changing CATALINA_HOME/webapps/__/* templates while
Tapestry was reading from CATALINA_HOME/temp/__/* templates.
Thanks,
Jim
-Original Message-
From: Jim Steinberger [mailto:[EMAIL PROTECTED]
Sent:
Hiya,
I'm sorry to bother people, as this screams of user-error, but I'm
trying to use the disable-caching setting for the first time and so far
I'm not having any luck.
On Windows XP, I've added the following to my catalina.bat, above all
the %EXECJAVA% statements (Tomcat 5.5.12, btw):
Hi
I have a couple of questions about form components in loops.
Firstly how am I able to access form components that are in a loop to record
an error against them in a listener method? e.g If there are 4 text fields
in a loop and I want to add an error to each of them.
Also related to this when t
Gerald Schöffel online.de> writes:
> The HTML output should be like:
>
> Please click here to register.
>
> Is there a Solution without breaking the sentence into 3 parts ?
The only solution that I can think of is to use a separate html
for each language. Then you don't need the .properties f
Dan Adams ifactory.com> writes:
> Okay, so I have a column called "name". In the global properties file I
> have "name = Name" but in this table I want the column to be "name =
> Submitted By". Where do you have to put the .page and .properties to do
> this? I tried creating Stories.page and Stor
Sounds logical to me, too... Because if it would be correct then type
"double" would be almost useless!
Maybe a bug report should be created for the given JVM (with the details of
your system) if you are REALLY sure about that result.
Regards,
Norbi
- Original Message -
From: "Sebasti
Javier Molina myrealbox.com> writes:
>
> Something like that could work for now even if it's a hack, but the code
> seems to be only for T4. Is there something similar for 3.0.3? I can
> only find getRequestCycle().getAttribute(String name) instead of
> getParameter() (which might just have b
Hi,
I'm replying a few days late, but hopefully it's still useful.
I don't understand all the people saying you should use BigDecimal or
saying that this is a double rounding problem. The BigDecimal solution
will work (that's beside the point), but that this is a double rounding
problem is in
spm tapestryforums.com> writes:
> So my management is finally interested in hearing about the benefits of
> Tapestry.
According to a poll (http://java.about.com/b/a/225580.htm), more people
will use Tapestry than any other Java web frameworks.
--
Author of a book for learning Tapestry (www.ag
I've tried to get this to work, looking at the demo application, but so far
no luck.
When I click the back button in firefox 1.0.7, nothing happens. There are no
Javascript errors in the Javascript console.
When I click the back button in IE 6, it works normally, going back the
usual "back button
Hi I believe that I'm getting a similar behavior as described in
http://issues.apache.org/jira/browse/TAPESTRY-696
with T4 final.
I have been unable to write a test to reproduce the error since it
happens randomly which makes me thing that it happens when classes are
enhanced. I have checked al
If you are talking about Tapestry 4.0 - then the source for the
workbench can be found in the main Tapestry distribution zip file under
the "examples\Workbench\src" directory.
david joffrin wrote:
Anyone would know?
From: "david joffrin" <[EMAIL PROTECTED]>
Reply-To: "Tapestry users"
To: t
58 matches
Mail list logo