You're asking to preload all the pages in the app, to check for syntax
errors in the html and page specs. Things the compiler doesn't catch,
that normally you wouldn't discover until you visit the page. I used to
do that. It's not supported directly by Tapestry, but in Tapestry3 it
wasn't to
Right... that's been working well for us. I have a request listener
method in a POJO:
import org.apache.log4j.MDC;
public class EventListener implements ServletRequestListener // among
others
{
public void requestInitialized(ServletRequestEvent sre) {
HttpServletRequest req = (Ht
The one difference I see between your code and what's been working for
me in my custom Engine class is one more line:
cycle.activate(page);
renderResponse(cycle);
[EMAIL PROTECTED] wrote:
> Hi.
>
> When the session expires, how can I handle this and redirect to a customiz
Hmm, I thought from your previous post that this method was in your
custom Engine class. The handleStaleSessionException() method in the
Engine is what gets called when the exception occurs. If this method is
in a page or component it won't be called.
Still, if you named your exception-reporting
(AdminVisit) getVisit();
> if (!theVisit.hasPermission(requiredPermission))
> {
> IPage permDenied = cycle.getPage("PermissionDenied");
> PropertyUtils.write(permDenied, "permissionRequired",
> requiredPermission);
> thro
It sounds like a servlet listener method could work for you. Or a
servlet filter as in the previous suggestion. Both would give you a
hook into the end-of-request, and you can get to the Visit via the
session. Here's a listener approach.
public class EventListener implements ServletRequestList
ike a hack:)
>
> What do you think if I override the Engine's method:
>
> public void service(WebRequest request, WebResponse
> response) throws IOException {
> super.service(request, response);
> // insert code here
> }
>
> Is this a bad approach?
>
>
&g
>> correct
>>
>>>>> that it would avoid the
>>>>>
>>>>>> visit-from-session inelegant bit. It would
>>>>>>
>> be
>>
>>>>> conceptually similar to
&
Daniel Jue gmail.com> writes:
> Does anyone have an example of listing current user sessions...
This tool might make things easier for you. I haven't tried it yet.
http://messadmin.sourceforge.net/
-
To unsubscribe, e-mail
The easy solution is, don't use private variables like that. Declare
them as persistent page properties. Do your development with caching
disabled so that the problem appears right away, rather than after a
ten-minute garbage-collection period.
Mark Stang wrote:
> Hi,
> I am seeing Tapestry 3 c
Just in case it helps
We had a surprise StaleLinkException in our 4.0.1 apps recently, after
creating a complex component with multiple loops and conditions. The
reason was that we were still using the old Foreach component for our
loops; it hadn't given us any trouble before. Switching fro
I have FCKEditor 2.3.2 working in IE7. I don't remember doing anything
special to make it work there. Looking back at my notes, I did have
some trouble with the Google toolbar's spell-checker blanking out the
text area on IE7. But then it started working and I never went back and
pinned down exa
g something. Tapestry insists on calling
my contributeTranslatorSource() with an unorderd Configuration.
Thanks!
Bryan Lewis
a
> MappedConfiguration so that you identify the
> translator by name for override purposes.
>
> Have you added an issue for this?
>
> On Wed, Oct 7, 2009 at 10:32 AM, Bryan Lewis
> wrote:
> > Hi. (I just said that so I could get one of Thiago's Hi's. :-
I tried your dependency and got the same error. Change
"chenillekit-project" to "chenillekit-tapestry". The complete dependency
from my pom is:
org.chenillekit
chenillekit-tapestry
1.2.0
jboss
j
You might like the TitlePane add-on component at
http://lombok.demon.co.uk/tapestry5Demo/. Or at least start with its code.
It can hide any arbirtary section of a page with an onclick, using the
prototype api.
On Mon, Oct 19, 2009 at 4:29 AM, Andrey Larionov wrote:
> All examples what i found
Hmm. Maybe this page will help. It had a tip that worked for me.
http://bbwebcraft.blogspot.com/2009/01/task-5-customize-eclipse-for-tapestry-5.html
@Inject
@Path("SomeFileName.js")
private Asset someScript;
@Environmental
private RenderSupport renderSupport;
void setupRender() {
renderSu
It's on page 225 of my paper copy. A simple bit of javascript:
On Wed, Nov 25, 2009 at 9:49 AM, Jim O'Callaghan wrote:
> Hi,
>
> I had a requirement to do this previously and used the example provided in
> Tapestry 5: Building Web Applications, around page 281 - the book (or at
> least ex
I'd like to see either or both of the techniques. I thought that it wasn't
possible to override Tapestry's built-in translators. (See TAP-725, "You
cannot define two different translators for a single field type.") When I
tried to add custom translators for String and BigDecimal types, either my
Thiago wrote:
>
> As of 5.1.0.5, it isn't possible to override them for a given type
> globally, but you can override it in a given TextField instance (translate
> parameter).
>
>
Really? I wish that was my experience. Here's what I'm seeing; maybe you
can point out what I've done wrong.
I have
ic FieldTranslator getCurrency()
{
return new CurrencyTranslator();
}
Where CurrencyTranslator implements FieldTranslator.
On Sun, Dec 27, 2009 at 3:37 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Sun, 27 Dec 2009 17:58:07 -0200, Bryan Lewis
>
Maybe this is what you're seeing. This article helped me when Jetty was
unable to reload stylesheet files.
http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows
On Fri, Jan 8, 2010 at 4:01 PM, Andy Pahne wrote:
>
> I use mavens jetty plugin and Eclipse. Template (css, images ...) and
I've had better luck using the fckeditor in chenillekit.
My pom.xml:
org.chenillekit
chenillekit-tapestry
1.2.0
A simple template:
On Sat, Jan 9, 2010 at 8:47 AM, oskar_a wrote:
>
> Hi Ville,
>
> thank you for your advice. I installed the
If I want to upgrade from 5.1.0.5 to the 5.1.0.6 snapshot, I can't simply
bump the version in my project's pom, can I? I'd have to check out the
source and build locally?
On Mon, Jan 25, 2010 at 10:04 PM, Andreas Andreou wrote:
> no - there's more!
>
> http://repository.apache.org/snapshots/or
M, Ulrich Stärk wrote:
> No, just change the version and configure the repository location
> correctly. I.e. create one pointing to
> http://repository.apache.org/snapshots
>
> HTH,
>
> Uli
>
> On 26.01.2010 15:25 schrieb Bryan Lewis:
>
> If I want to upgrade from
Okay, I tried it again. The maven update worked this time. It picked up
the new build with the -3 suffix.
However, now I'm getting an error on one of my pages that contains the
tapx-datefield component, A javascript error pops up in a Blackbird
console:
Tapestry.Initializer.tapxDateField()
formos.com repository from my pom.
Sorry, changed two things at once.
Maven still feels a bit too much like magic to me. (Yeah, I know, any
sufficiently advanced technology...)
On Tue, Jan 26, 2010 at 8:45 PM, Bryan Lewis wrote:
> Okay, I tried it again. The maven update worked this time.
Agreed. I was sort of blaming the messenger.
On Tue, Jan 26, 2010 at 9:29 PM, Kalle Korhonen
wrote:
> On Tue, Jan 26, 2010 at 5:57 PM, Bryan Lewis
> wrote:
> > I thought of another way to kick-start it. I put my pom's Tapestry
> version
> > back to 5.1.0.5 and the
http://tapestry.apache.org/tapestry5/guide/css.html
Basically, you'll look at Tapestry's built-in stylesheet -- default.css in
the org.apache.tapestry5 folder of tapestry-core-5.1.0.5.jar or whatever
version you have -- and take note of the style names that matter to you.
For autocomplete, look fo
I've been using the Upload component with good results. Now I need to get
the full client-side path where the file came from. I've tried
UploadedFile.getFilePath() but that gives me only the base filename, like
"foo.txt", not the absolute path.
The comments in UploadedFile say that getFilePath()
I have a simple page test based on Testify/TestNG. It's only a smoke test,
merely renders the page to make sure I haven't broken anything.
public void test1()
{
Document doc = tester.renderPage("contacteditor/200");
String contents = doc.toString();
assertTrue(!con
I need a method that will get called exactly once when a page is first
invoked, and not again when a form in the page is submitted. In Tapestry 4
the activateExternalPage() method was good for that. I don't think the new
onActivate() method is a replacement, nor is the SetupRender-annotated
metho
don't know how Cayenne works so this might not apply, but I've noticed that
> this is best practise for our apps w/ hibernate.)
>
> - Ville
>
>
> JoelGrrrr wrote:
> >
> > This might help... PageLoaded ...
> >
> http://tapestry.apache.org/tapestry5/a
That agrees well with my T3-4-5 experience over the last five years. Once I
committed to T5, it wasn't as bad as I'd feared from all the mailing-list
discussion. (Note to self: The list is mainly about problems.) It felt
familiar, the "concepts translated well".
Getting accustomed to Maven and
We're in a similar situation and the same history. Recently I did a little
work on mixing new Tap5 pages with an older Tap4 app. It works but it feels
a bit awkward and we haven't acid-tested it in production. I'd be
interested in your results if you try it.
Basically I deployed the new Tap5 pa
Can't you just use cookie.setDomain()? Set both cookies to the same
domain. Doesn't sound Tapestry- or javascript-related.
On Wed, Jun 3, 2009 at 9:37 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Wed, 03 Jun 2009 21:02:06 -0300, Angelo Chen <
> angelochen...@yahoo.com.h
It looks good. Thanks for contributing!
When I tried it (after manually adding the jar to my web-app project), I
got:
java.lang.UnsupportedClassVersionError: Bad version number in .class
file
EasyFCKEditor is compiled with JDK 1.6, while we have to run with JDK 1.5.
No hurry. I'm doing okay with the editor in chenillekit for now. Just
letting you know.
On Fri, Jul 24, 2009 at 9:15 AM, Ville Virtanen wrote:
>
> Damn, we're on 1.6 only... I'll roll another 1.5 compiled release tonight
> if
> I have the time after work.
>
This might help:
http://tapestry.apache.org/tapestry5/guide/validation.html
You can access your form and input components by injection, and then do
form.recordError(field, ...).
2009/7/31 Vjeran Marcinko
> Hello,
>
> I have created multi-form-field component (eg, DateRangeEditor component
>
I'm building Tapestry 5.0.18 apps in Eclipse with Jetty with no problem.
What plugin are you using to run jetty in eclipse? At first I tried
JettyLauncher because it was recommended in the Tapestry tutorial (for older
versions of Jetty and Eclipse), but I got ClassNotFoundExceptions when
running w
If "multiselect" means what I think it does... we've had good luck with the
ChildSelect component in the lombok library.
http://lombok.demon.co.uk/tapestry5Demo/test/components/DynamicSelect
2010/5/21 Genís Pujol
> Hello,
>
> Is there any documentation/examples about multiselect controls in
>
Cool. It reminds me of a question I've been meaning to ask.
What's the best way to define the default value for component parameters?
Is it:
@Parameter(defaultPrefix = BindingConstants.LITERAL)
private String clientEvent = "change";
or:
@Parameter(value = "change", defaultPrefix =
I've used Testify with no real problems. I tried your line of initialization
code and it worked for me. I've done no special configuration, just
righ-clicked on my tet class and Debug as TestNG Test.
The exception says it's looking for a file src/main/webapp/css/grid.css.
On Tue, Jun 8, 2010 at
I'm on an older version of testify, 1.0.0. Maybe that's a clue.
On Wed, Jun 9, 2010 at 8:26 AM, paha wrote:
>
> Doesn't work for me either. Neither PageTester nor Testify (based on it)
> seem
> to handle asset:context: properly. I have no other explanation, why the
> same
> things work in tape
Why not use a Loop in your component and pass in a List?
On Thu, Jul 22, 2010 at 6:03 AM, Jabbar wrote:
> Hello all,
>
> I'm trying to make a custom tab component. I want to use it like the
> following
>
>
>
>
>
>
>
>
>
>
>
>
>
> In my java tab component class I don't know
I've had very good results with this mixin that I heard about from this
list.
On Thu, Aug 12, 2010 at 9:14 PM, Mite wrote:
>
> Hi
> Is there a way to refresh a zone on a fixed period automatically?
>
> Thanks
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Refresh-z
Let me try that again. I've had very good results with this PeriodicUpdate
mixin that I heard about from this list.
http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5
On Fri, Aug 13, 2010 at 9:06 AM, Bryan Lewis wrote:
> I've had very good results with this mixin
I have a page with a form containing a DateField. The form is long enough
that the user might have to scroll down a little to get to the DateField.
After that, when the user clicks on the calendar icon, the widget pops up in
some seemingly random location not near the field. Sometimes even outside
Sorry, didn't mention my Tapestry version. 5.1.0.5.
On Wed, Aug 18, 2010 at 10:31 AM, Bryan Lewis wrote:
> I have a page with a form containing a DateField. The form is long enough
> that the user might have to scroll down a little to get to the DateField.
> After that, when t
I had good results with this:
http://lombok.demon.co.uk/tapestry5Demo/
On Mon, Aug 23, 2010 at 12:19 PM, tas85 wrote:
>
> Hi Tapestry,
>
> Is it possible to create 2 Select Box of Objects, as:
>
> List1: Car, Motor, Bicyle
> List2: depend on List1, if on choose car, List2 will be Mercedes, Au
I had good results with the PeriodicUpdate mixin described at
http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5
On Tue, Aug 31, 2010 at 6:25 PM, Mite wrote:
>
> I need to have a function called every one minute from the moment the
> application is deployed on the server, that do
This tutorial might be helpful. It shows a page being periodically updated.
http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/
On Thu, Oct 14, 2010 at 7:04 AM, LLTYK wrote:
>
> I don't think there's an existing howto floating around so you're gonna
> have
> to put something tog
I use a RadioGroup with a Loop frequently. I think you only need to change
the way you specify the label.
Here's an example from my code:
On Sun, Dec 12, 2010 at 8:18 AM, Anton Mezerny wrote:
> Hi all,
> I'm trying to render dynamic RadioGroup like here:
>
> > >
>
I don't have a great answer, but since you asked again...
I had a similar surprise a year ago because I was expecting things to work
as they did in Tap4:
http://www.mail-archive.com/users@tapestry.apache.org/msg39593.html
But someone (Thiago probably) pointed out that it wasn't so hard to specify
Here's what's been working for us, constructor injecion. (My syntax might
be a bit old and deprecated by now?)
public Visit(@InjectService("Cookies") Cookies cookieService)
{
this.cookieService = cookieService;
}
// Just to make sure I don't try to do 'new Visit()', hide
even need the @InjectService or @Inject annotations for injection
> to be done in constructors of services.
>
> Naming your session state class Visit makes me 99% sure you were a Tapestry
> 4 or 3 user. :P
>
>
> On Wed, 29 Dec 2010 18:19:12 -0200, Bryan Lewis
> wrote:
Interesting idea, I plan to try it... I've had occasional difficulties
getting the built-in persistence methods to work just right. If I use
flash, the message doesn't always survive the redirect, say if I return null
from onSuccess().
But I'm curious about the original statement, "Generics are d
I switched our apps some time ago to Tapx Datefield and we've been happy
with it. The only annoyance about it was the inability to easily override
the date parser. I was asked to make it accept two-digit years and I had to
hack the source. But we were totally happy with it before that requirement
I've been trying to figure out a weird bug today, and before I lose the
night over it I thought I'd ask the list. I'm using the cool new "chained
select" feature. One Select has a zone, and triggers an onValueChanged()
method that affects another Select. It works fine on my machine and when
most
t 6:41 AM, Ulrich Stärk wrote:
> Can you see the request hitting the server after the first zone's value is
> changed?
>
> Uli
>
> On 24.02.2011 23:43, Bryan Lewis wrote:
> > I've been trying to figure out a weird bug today, and before I lose the
> > night
posting and have an insight.
On Fri, Feb 25, 2011 at 10:24 AM, Bryan Lewis wrote:
> Nope. In the failing cases, the ajax request did not arrive at my
> AppModule's request filter. That's why the Select's onValueChanged() isn't
> getting called. I don't thin
ect. The
>> second select does an onchange form submit. Crude and a bit slower but it
>> works.
>>
>> In other words it stumped me. Maybe some day someone else will see this
>> posting and have an insight.
>>
>>
>> On Fri, Feb 25, 2011 at 10:24 AM,
The stack trace says you have an NPE in your onSuccess method, at
SelectPlayers.java:246. The ComponentEventException has little to do with
it... it's only saying the exception occurred during the 'success' event.
On Tue, Mar 1, 2011 at 7:18 AM, robnangle wrote:
> I have seen a couple thru the
When I make a trivial change to a Tapestry page in development and refresh
my browser to cause a hot reload, it's taking about 11 seconds which is
getting annoying. I don't know exactly when this started (months ago), but
in an older workspace the page-reload time is about 0.3 second. Both are
us
ing
> for content, or is the content up immediately, but doesn't reflect the
> new code & resources?
>
> On Wed, Apr 6, 2011 at 5:30 PM, Bryan Lewis wrote:
> > When I make a trivial change to a Tapestry page in development and
> refresh
> > my browser to cause a
I haven't had any trouble defining a favicon, and I run in Jetty both on my
dev machine ond on our production server. I put the icon file in
src/main/webapp/i. My layout component does:
${title}
(I forget why I needed both links and maybe I don't any more... some browser
inc
One way to do it:
@Inject private Request request;
...
int port = request.getServerPort();
String serverName = request.getServerName();
On Sun, Apr 24, 2011 at 7:28 PM, Mark wrote:
> What is the best way to get the url of the root of a web application? In
> other wor
Tapestry automatically puts the focus into the first field of the page
unless you tell it not to. Try adding the 'autofocus' attribute to the form
declaration:
On Sat, May 21, 2011 at 5:53 AM, Joel Halbert wrote:
> Hi,
>
> We've got a upload file form using the Upload component:
>
>
Maybe you did the same thing I did?
http://tapestry.1045711.n5.nabble.com/slow-page-reload-td4287502.html
On Tue, May 24, 2011 at 1:06 PM, Davor Hrg wrote:
> I've updated run-jetty,
> and tried with and without page-pool
> still 5-6 seconds load time.
>
>
> I decided to try to go as simple as p
I put it back into the src/main/resources line of .classpath, like:
My templates are being copied to the expected place, like ...
target\classes\com\companyname\appname\pages\PageName.tml.
Maybe there's something else amiss with your maven/build configuration.
Does your pom.xml have the se
This might be a silly idea, but I'll ask it anyway... Would it be bad to
run a Tapestry application inside Eclipse on a production server? The
objective would be to have full hot-swapping, as I have in my local
development workspace, but maybe it would be bad for memory consumption or
stability.
Yes, I'm sure that's what he meant. Version 5.3 will turn off live class
reloading in production, which is why he's saying you'll have to run in
development mode.
To clarify my original question (now that it's a dead horse)... I wasn't
worried about reloading of the pages and other top-tier clas
I had a related problem. An Ajax form submit stopped working after the
page returned a StreamResponse. Manually refreshing the page fixed it,
which provided the clue to a better fix. (Aided by this list -- there were
a couple of posts on 9/4 and 9/24 about it... maybe this is corrected in a
late
Maybe this will help. I haven't tried it myself.
http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html
On Sat, Sep 15, 2012 at 5:40 PM, Ken in Nashua wrote:
>
> Folks,
>
> Any help is appreciated.
>
> Formerly (in T4) OGNL was used to perform delicate property handling and
> p
This might help:
http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html
On Friday, September 28, 2012, Ken in Nashua wrote:
>
> Thanks Thiago... that worked for my one class.
>
> But...
>
> @java.lang.Math@min(collection.size,itemsPerPage)
>
> the above statement... I am sure you
I wonder if it's related to this issue:
https://issues.apache.org/jira/browse/TAP5-707
As of version 5.2, tapestry.js sets the background color inside a zone,
trying to prevent a partially faded yellow.
On Wed, Oct 31, 2012 at 3:50 PM, membersound wrote:
> Sometimes if a t:zone is updated, I'm
etStyle('background-color'))
this.endcolor =
this.element.getStyle('background-color').parseColor('#ff');
On Wed, Oct 31, 2012 at 5:53 PM, Bryan Lewis wrote:
> I wonder if it's related to this issue:
> https://issues.apache.org/jira/browse/TAP5-707
>
What I use:
@Inject private ComponentResources componentResources;
/**
* @return the containing page.
*/
public BasePage getPage()
{
return (BasePage) componentResources.getPage();
}
On Fri, Nov 2, 2012 at 3:02 PM, o3005659 wrote:
> How can I simply find
Sorry, BasePage is our internal class, the root class for all our pages. I
assumed you'd replace it with something similar of your own. It could be
only an interface. If you don't have such a thing, don't add a cast at
all... componentResources.getPage() returns a Component and that should be
g
Tapestry invokes the Index page when it receives a request for a page that
doesn't exist. I couldn't quickly find where this is explained in detail,
but I did find this footnote at
http://tapestry.apache.org/error-page-recipe.html
"... any invalid path, which would normally generate a 404 error,
I've seen this error message when there was a JavaScript error elsewhere in
my page.
On Wednesday, January 23, 2013, George Christman wrote:
> My bad, I pasted my test component exception with a different event
> handler.
> Anyhow, same exception with correct event handler.
>
> ioc.Registry A com
I've seen this error message when I was playing with an automatic (timed)
page refresh with a bit of javascript that did a location.reload. After a
form submission the auto-refresh generated a URL like /pagename.form which
caused this form-get exception. Yeah, it's a long shot but I thought I'd
t
It sounds like this might be helpful:
http://tapestry.apache.org/overriding-exception-reporting.html
On Sat, Mar 23, 2013 at 9:34 AM, Ken in Nashua wrote:
> I guess I am wondering if i can catch these exceptions in a centralized
> place and just present the most meaningful text in a popup dialo
Recently I started using the StreamPageContent feature to show the user an
error message without losing the original page's address. For example:
Object onActivate(Policy p)
{
if (p == null) {
return new StreamPageContent(ErrorPage.class, "Invalid item");
}
o) if
it sees an ajax request.
On Wed, Apr 17, 2013 at 5:28 PM, Bryan Lewis wrote:
> Recently I started using the StreamPageContent feature to show the user an
> error message without losing the original page's address. For example:
>
> Object onActivate(Policy p)
&
When I read the original post, I thought all he needed was a proper pair
of onActivate/onPassivate methods. To get the first form of the url anyway.
On Fri, May 10, 2013 at 7:51 AM, Taha Siddiqi wrote:
> Please go through http://tapestry.apache.org/url-rewriting.html.
>
> Also http://blog.tap
Just in case it's related to your question... Last year I had a problem
with m2eclipse being painfully slow but it was caused by my
mis-configuration.
http://tapestry.1045711.n5.nabble.com/slow-page-reload-td4287502.html
On Mon, Jan 16, 2012 at 6:04 PM, Lenny Primak wrote:
> When did this improv
A quick guess at the easy typo... missing 't:' before 'id'.
On Sun, Mar 4, 2012 at 7:51 AM, Gunnar Eketrapp
wrote:
> I fail to inject a textarea ..
>
> Tml extract
> value="message" style="height: 50px;"/>
>
>
> Java extract
>
>
> Neither ..
> @InjectComponent
> private TextAre
s needed.
>
> /Gunnar
>
> 2012/3/4 Bryan Lewis
>
> > A quick guess at the easy typo... missing 't:' before 'id'.
> >
> >
> > On Sun, Mar 4, 2012 at 7:51 AM, Gunnar Eketrapp
> > wrote:
> >
> > > I
We had the same problem. After a StreamResponse, an Ajax link on the same
page stopped working. Where "stopped working" means, the link did invoke a
server-side method, but no results appeared in the browser.
A few work-arounds were discussed in this list (search for
"windowunloaded"), such as t
We dealt with this issue by writing a javascript function to find the
mangled ID,
based on the original ID. Maybe it'll help. We''l pass the ID of the
containing element,
often a div, to narrow the search.
// Returns the ID of a component with a name beginning with the partialId.
// When Tapestr
I experienced a fourth possibility, although it could be considered a
variant of the third one. I was storing an object map (a Cayenne
ObjectContext) in a ThreadLocal and I wasn't clearing the ThreadLocal
immediately at the end of each request. In rare circumstances, when a
second user started a
I've been asked to add a number of columns to a Grid. It'll end up with 13
columns, a few of them rather wide , so the whole thing won't fint in a
page width. We used to handle this by doing the editing in a separate
page, but our users are asking if it's possible to do all the editing
in-place.
Thanks. But me being a "pragmatic" programmer (aka lazy), I solved it by
inelegantly stuffing the extra row tags into the last grid cell, like:
Last cell's contents
On Wed, Jun 13, 2012 at 4:05 PM, Lance Java wrote:
> You could write a mixin which manipulates
The lightbox idea is cool. So is the AddGridRow component idea, if my
users can't stand the idea of a pop-up dialog. I gave it a quick try and
it works well, produces valid html. (And it hides the ugly markup from the
template, to preserve a facade of self-respect.)
Thanks, y'all.
Try onActivate() or onPrepareForSubmit().
On Mon, Jul 23, 2012 at 7:19 AM, ZKN __ wrote:
> Hi,
> I have a custom component that needs to be initialized every time before
> use. For this I wrote a method like this:
> @SetupRender
> public void prepare() {
> But this method only gets invo
gt; that the user has to scroll to get to it. When they use the datefield, the
> popup appears in a completely different part of the page, above the form.
> The user has to scroll back up to even see it. The form and datefield
> works
> fine in Chrome.
>
> Thanks
>
>
> Bryan
I've been doing:
@Inject private ComponentSource componentSource;
public MyBasePage getPage(String pageName)
{
return (MyBasePage) componentSource.getPage(pageName);
}
On Thu, Jul 26, 2012 at 10:12 AM, Christian Riedel
wrote:
> You could inject the ComponentResources i
Ah yes, the problem of not catching changes made by clicking on the little
calendar icon. Here's a crude work-around I'm using in 5.2.6, catching the
click event.
String scriptlet = "Event.observe('" + dateFieldId + "-trigger',
'click', function() { setChanged(true); });"
javaScriptSuppor
Try setting the 'readonly' attribute on the datefield. Works for me.
On Thu, Aug 23, 2012 at 6:44 AM, karthi wrote:
> Hi,
>
>
> I am using date field in my UI where I don't want the users to type
> anything
> in the box provided, I surely need that input box coming with the date
> field
> and I
1 - 100 of 112 matches
Mail list logo