Do you want the component or whether or not its a am or pm?
MutableDateTime mdt = new MutableDateTime(startField.getModelObject());
mdt.set(DateTimeFieldType type, int value);
startField.setModelObject(mdt.toDate());
http://joda-time.sourceforge.net/api-release/org/joda/time/MutableDateTime.htm
yes it does
do you see the "ILinkListener" part is your browser url?
no because the cleanest url: wicket:interface=:15 is the
IRedirectListener but we dont print that in the url because that one is
assumed
if no interface string is given
johan
On Sat, Mar 29, 2008 at 1:43 AM, James Carman <[
Hi *,
we added an IFRAME to out homepage. This gets an url to he wicket-application
by assignment to src attribute. If the user uses the button in IFRAME a new
window is open and the application is displayed.
We set the session timeout limit in web.xml. Everything ok so far. But we have
the ef
What is the order of the filters you defined in your filter-mapping element
in the web.xml. IIRC you should put the OpenEntityManagerInViewFilter
definition in the filter-mapping after the WicketFilter otherwise the
WicketFilter will come first.
Lars
On Fri, Mar 28, 2008 at 9:11 PM, cjlyth <[EMAI
On Sat, Mar 29, 2008 at 4:18 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> yes it does
> do you see the "ILinkListener" part is your browser url?
> no because the cleanest url: wicket:interface=:15 is the
> IRedirectListener but we dont print that in the url because that one is
> assumed
As I am getting very used to the wicket way, using compound models with
my form fields labels an so on.
I suddenly are a bit stomped why you have todo so much when it comes to
uploading files (and yes I am aware that it is only a few more lines of
code).. I think the fileupload field should w
Hello,
I looked into the source code, but I do not find some line
that helped me. I was using the online SVN view. But I think
checkout the source will be much better...
jwcarman wrote:
>
> I would maybe take a look at WicketTester. It does what you're
> looking for (renders to a String) I
I have a requirement to allow users to change such things as colour, font
etc. for certain markup. Currently this is all 'wrapped' by CSS ids/classes
but the use of varying ids/classes seems wrong.
The use case if for engineers viewing data from sensors. Some engineers
require values below a certa
if you need to do it dynamicly, you could "just" use the
textressourcetemplate approach, something similar what I've done with
the js in wicket input events (I stole the idea from the datepicker)..
regards Nino
Eric Rotick wrote:
I have a requirement to allow users to change such things as c
You can do WicketTester.getServletResponse().getDocument() to get the
rendered HTML.
On Sat, Mar 29, 2008 at 9:27 AM, greeklinux <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I looked into the source code, but I do not find some line
> that helped me. I was using the online SVN view. But I think
>
Where can I find out more about this approach?
On Sat, Mar 29, 2008 at 2:07 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:
> if you need to do it dynamicly, you could "just" use the
> textressourcetemplate approach, something similar what I've done with
> the js in wicket in
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events
essentially its this which are interesting:
private String generateString(TextTemplate textTemplate) {
// variables for the initialization script
Map variables = new HashMap();
variable
You could also use a attribute modifer...
regards Nino
Andrew Broderick wrote:
Hi,
I want to put a title attribute in a td tag. However, my markup would then look
like this:
" > blah blah
Now, I know I could output the with a label and set escaping to false,
thus passing the markup thro
Now I see. I had not discovered these classes!
I was hoping to avoid embedding the CSS within the HTML as this does not
benefit from the size reduction that CSS separation gives. However, you've
given me another idea. CSS allows for definitions to be overridden locally
in each page so I could arra
You dont have to embed it, you could mount it as a resource... But still
it needs to be generated. However you could cache this, it totally up to
you..
regards Nin
Eric Rotick wrote:
Now I see. I had not discovered these classes!
I was hoping to avoid embedding the CSS within the HTML as th
erm, i thought filters were executed in the order they were defined in
web.xml. so open..inview should be declared before wicket. and its not
the filter-mapping but the filter element...
-igor
On Sat, Mar 29, 2008 at 4:15 AM, lars vonk <[EMAIL PROTECTED]> wrote:
> What is the order of the filters
If you want to write it to a file you can do that too btw...
regards
Nino Saturnino Martinez Vazquez Wael wrote:
You dont have to embed it, you could mount it as a resource... But
still it needs to be generated. However you could cache this, it
totally up to you..
regards Nin
Eric Rotick w
isnt it that much easier to define one "highlight" css class and then
dynamically add it to elements that need to be highlighted?
-igor
On Sat, Mar 29, 2008 at 6:55 AM, Eric Rotick <[EMAIL PROTECTED]> wrote:
> I have a requirement to allow users to change such things as colour, font
> etc. for
Aha, I only covered the resources section of the ebook very briefly. Now
having read it again I think this is exactly what I need.
The caching that the browser does itself is good enough for this I think but
I could add something later via AOP.
Thanks for your help.
Eric.
On Sat, Mar 29, 2008 a
It's not the fact that something is highlighted that changes it's the
details of the highlighting itself. Some want bold text with yellow
background, others want yellow text with a black background.
On Sat, Mar 29, 2008 at 5:07 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
> isnt it that much easi
I'm using markup inheritance to reuse a base page template for all
pages on my site. Some of these pages include Google Maps. According
to best practices, the element of the page needs an onunload
event handler that calls the GUnload() function to eliminate memory
leaks:
http://code.google.com
On Fri, 28 Mar 2008, Vitaly Tsaplin wrote:
>My question is simple... :) How to use an action level
> authorization. I cannot find any info or example.
"Action level" sounds strange to me, as Wicket is a
component-based framework and does not have actions in the
traditional model 2 sense.
I h
Using either wicket-auth-roles or swarm you typically only declare
which action you want to check and don't do the actual check yourself
unless you plan on doing something special.
How you declare which action is required depends on the security
framework you are using.
In wicket-auth-roles you add
body onunload="if (GUnload!='undefined') GUnload();"
-igor
On Sat, Mar 29, 2008 at 10:51 AM, Zach Cox <[EMAIL PROTECTED]> wrote:
> I'm using markup inheritance to reuse a base page template for all
> pages on my site. Some of these pages include Google Maps. According
> to best practices, t
wicket urls contain page /component id's and versions that are
generated based on the session (id counters etc), if that is what you
mean by session relative urls.
Your javascript will probably have a hard time figuring out which
sound to play if you use those urls as mapping, it might work if you
> I suddenly are a bit stomped why you have todo so much when it comes to
>uploading files (and yes I am aware that it is only a few more lines of
>code)..
What is "todo so much"? You need to tell people what it is exactly, like put
up some code? Otherwise no one can tell exactly what you are doi
Seriously? There's no AttributeModifier I can use to add an onunload
attribute to body element?
If not, is it just a matter of "it hasn't been implemented"? Or is there
some philosophical reason it isn't available?
Thanks,
Zach
igor.vaynberg wrote:
>
> body onunload="if (GUnload!='undefine
if I were you i'd use the gmap2 contrib...
Zach Cox wrote:
I'm using markup inheritance to reuse a base page template for all
pages on my site. Some of these pages include Google Maps. According
to best practices, the element of the page needs an onunload
event handler that calls the GUnload
Can you put a ajaxtimerbehavior in the iframe to call the server to keep the
session alive?
On Sat, Mar 29, 2008 at 2:32 AM, Per Newgro <[EMAIL PROTECTED]> wrote:
> Hi *,
>
> we added an IFRAME to out homepage. This gets an url to he
> wicket-application
> by assignment to src attribute. If the u
Actually I am not going to use anything from wicket staff here. I
have just one role - a user which is logged in :) And so I am just
going to use the RENDER action defined by wicket to avoid an explicit
call of setVisible () and to use authorization mechanism instead to
hide components from gues
They are initialized in the order they are defined, but executed in the
order of filter-mapping:
Quote from servlet spec 2.4:
The order the container uses in building the chain of filters to be applied
> for a
> particular request URI is as follows:
> 1. First, the matching filter mappings in th
Well if you insist on building your own, even though there are 2
perfectly appliable frameworks for your situation, then why not take a
look at how they add the authentication info to the component.
I'll save you some time: both use component metadata, you could also
like wicket-auth-roles does too
Matthew Young wrote:
I suddenly are a bit stomped why you have todo so much when it comes to
uploading files (and yes I am aware that it is only a few more lines of
code)..
What is "todo so much"? You need to tell people what it is exactly, like put
up some code? Otherwise no one can te
Hmm that could break the flow is my guess(as it would force the url back
to whatever was set in the iframe attribute), i'd actually say that it
were whatever was contained withing the iframe responsability to use
keepalives...
regards Nino
Matthew Young wrote:
Can you put a ajaxtimerbehavior
I've updated my wicket application to Wicket 1.3.2, but now, when I try to
switch between my application tabs (my tabs extend
org.apache.wicket.extensions.markup.html.tabs.AbstractTab) I'm getting this
error:
ERROR RequestCycle () - Could not deserialize object using
`org.apache.wicket.util.io.IO
I have a project where in a modal window there's an image that's generated
on the fly which contains a graphic with info based on the current day.
Above the graphic there are links so that the user can see a graphic for the
current week or the current year (instead of the day graphic). When he
cli
we no longer treat body tags differently, so if you want add a
transparent markupcontainer to your basepage and attach it to your
body tags. then add attribute modifiers to that container.
with the advancement of javascript event handlers people dont use the
body tag for this purpose any longer. a
thanks. i always thought it was the other way, probably because i
googled it at the time instead of reading the spec. if you google
"web.xml filter order" the first hit you get is
http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html?page=3
which states that it is the order they are
you can have two generic divs that hold panels. then you can create
panels for every kind of situation you have and swap them in and out
of those two divs.
so like an image panel, month menu panel, year menu panel, and what not..
-igor
On Sat, Mar 29, 2008 at 4:18 PM, Cristi Manole <[EMAIL PROT
Hi,
How do I change an appearance of a link pointing to a currently
presented page? It seems I am supposed to implement my own navigator
component from scratch? Any ideas?
Vitalz
-
To unsubscribe, e-mail: [EMAIL PROTECT
The current page is like this:
7
So you can just style the tag to whichever way you like.
On Sat, Mar 29, 2008 at 4:46 PM, Vitaly Tsaplin <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> How do I change an appearance of a link pointing to a currently
> presented page? It seems I am supposed to impleme
It simply doesn't work. That's why I am asking... tag is
created for surrounding disabled "links" and for active ones. I do
not see any way how to distinguish the current page...
On Sun, Mar 30, 2008 at 12:59 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> The current page is like this:
>
>
div.nav em { color:red; }
-igor
On Sat, Mar 29, 2008 at 5:04 PM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
>It simply doesn't work. That's why I am asking... tag is
> created for surrounding disabled "links" and for active ones. I do
> not see any way how to distinguish the current p
It works but as I said it highlights not only the link to a current
page, but also links to next and previous pages (increments) if you
navigate to the leftmost or rightmost page since is created for
links to which a navigation is impossible or makes no sense.
On Sun, Mar 30, 2008 at 1:38 AM,
No that warning doesnt anything todo with serialization.
But do you have a reproduceable testcase? That would be very nice to
have, can you attach that to the jira (there is already one
describing this i think)
On 3/29/08, Daniel Wu <[EMAIL PROTECTED]> wrote:
>
> I've updated my wicket applicati
Probably you can add a class attribute to incrementing links or
change its tag... The reason is to be able to apply a styling to this
links separately.
On Sun, Mar 30, 2008 at 1:56 AM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
>It works but as I said it highlights not only the link to a cur
Ok, I see what your problem really is. Here is your solution:
final IBehavior currentPageLinkClassifier = new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override public void onComponentTag(Component c, ComponentTag tag)
{
if (((Link) c).
Thanks for your help, Matthew, but it seems doesn't help me
neither... I still cannot distinguish a regular page link and a
incrementing link (which is made of angle brackets).
On Sun, Mar 30, 2008 at 3:18 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> Ok, I see what your problem really is. Her
Ohh, sorry. I see :) It should work...
On Sun, Mar 30, 2008 at 3:27 AM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
> Thanks for your help, Matthew, but it seems doesn't help me
> neither... I still cannot distinguish a regular page link and a
> incrementing link (which is made of angle brack
On Sat, Mar 29, 2008 at 7:15 AM, lars vonk <[EMAIL PROTECTED]> wrote:
> What is the order of the filters you defined in your filter-mapping element
> in the web.xml. IIRC you should put the OpenEntityManagerInViewFilter
> definition in the filter-mapping after the WicketFilter otherwise the
> Wi
it will execute _after_ the wicket filter. which is no good because
you need lazy loading to work inside wicket filter, so you need oemiv
to execute before. and possibly, if wicket filter never calls
chain.dofilter it will never execute.
-igor
On Sat, Mar 29, 2008 at 7:02 PM, James Carman
<[EMAI
On Sat, Mar 29, 2008 at 10:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> it will execute _after_ the wicket filter. which is no good because
> you need lazy loading to work inside wicket filter, so you need oemiv
> to execute before. and possibly, if wicket filter never calls
> chain.dofilte
On Sat, Mar 29, 2008 at 8:04 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> So, I think you just have it backwards. The
> OpenEntityManagerInViewFilter should be mapped before the
> WicketFilter.
i dont know if my english is broken or what, but i believe that is
exactly what ive been saying all
Hi,
Does Wicket support WML? I could not find any reference to that in the
documentation.
What would be required for using Wicket to generate WML pages? Does it
require me to write my own Wicket components?
Thanks,
Naaman
--
View this message in context:
http://www.nabble.com/Does-Wicket-suppo
54 matches
Mail list logo