Re: Wicket and GNU Gettext

2010-03-17 Thread Ernesto Reinaldo Barreiro
Just one idea:

1-implement your own IStringResourceLoader that reads messages from where
you need
2-register it on Application.init().
e.g. 
getResourceSettings().addStringResourceLoader(GetTextResourceLoader.getInstance());

I see no reason why  wicket:message should not work as expected if you do
the above.

Ernesto

On Wed, Mar 17, 2010 at 6:18 AM, Sigmar Muuga meedi...@gmail.com wrote:

 Hello, just wanted to ask, if anybody has experiences with combining GNU
 Gettext and Wicket?

 Actually I am figuring how to get my project work best with it... what
 should I do r what should I do not
 Is it possible to use it also  with wicket:message?

 Sigmar



Re: Wicket and GNU Gettext

2010-03-17 Thread Sigmar Muuga
Actually I am using .class files as translation resources(gettext-commons
generates them).
I use lib called gettext-commons with ant (
http://code.google.com/p/gettext-commons/).
I translate all translations with poEdit.

Sigmar

On Wed, Mar 17, 2010 at 8:13 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Just one idea:

 1-implement your own IStringResourceLoader that reads messages from where
 you need
 2-register it on Application.init().
 e.g.
 getResourceSettings().addStringResourceLoader(GetTextResourceLoader.getInstance());

 I see no reason why  wicket:message should not work as expected if you do
 the above.

 Ernesto

 On Wed, Mar 17, 2010 at 6:18 AM, Sigmar Muuga meedi...@gmail.com wrote:

  Hello, just wanted to ask, if anybody has experiences with combining GNU
  Gettext and Wicket?
 
  Actually I am figuring how to get my project work best with it... what
  should I do r what should I do not
  Is it possible to use it also  with wicket:message?
 
  Sigmar
 



Re: Bookmarkable Links Session

2010-03-17 Thread Mauro Ciancio
Anteoine,
  thanks for the reply. It worked great.

Cheers.

On Tue, Mar 16, 2010 at 5:21 PM, Antoine van Wel
antoine.van@gmail.com wrote:
 When you have a stateless page, no session is created when you land on
 such a page first, or to be more precise: a temporary session is
 created. So that should explain the difference you see.

 Calling Session.get().bind() when logging in should fix that.

 Better, call Session.get().replaceSession() when logging in, that
 should both solve your problem and fix a potential security hole.



 Antoine


 On Tue, Mar 16, 2010 at 8:32 PM, Mauro Ciancio maurocian...@gmail.com wrote:
 Hello everyone,

  I'm developing an application that uses a lot of bookmarkable links
 in order to
 get pretty urls. When I log in with my userpassword, I'm redirected
 to the home page. This
 behavior is ok, but the session appears to be not created, so i still see the
 login link (and not the welcome message 'you are logged in').

  However, if before login I browse a page that contains state and
 then i go to the login page,
 it works well.

 I guess the session is not being created, but it should be created
 when I try to login.

 Any ideas?
 Cheers.
 --
 Mauro Ciancio maurociancio at gmail dot com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Mauro Ciancio maurociancio at gmail dot com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Application#get in WicketSessionFilter

2010-03-17 Thread Jonas
Thanks, Erik, that code would do the trick, too. I've implemented
a different workaround, though. In the next release of wicket (1.4.8),
WicketSessionFilter will 'expose' both the session and the application, Igor
already resolved my JIRA Issue [1]. BTW: Thanks to Igor for picking that
up so quickly!

cheers,
Jonas


[1] https://issues.apache.org/jira/browse/WICKET-2778

On Tue, Mar 16, 2010 at 9:05 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 Hi Jonas,

 Perhaps this is what you need:
 http://cwiki.apache.org/WICKET/springbean-outside-wicket.html

 Regards,
   Erik.


 Jonas wrote:

 Hi all,

 we're using WicketSessionFilter in our product to access
 our custom WebSession, which works fine. Now we've tried
 to also access the org.apache.wicket.Application (e.g. using
 Session#getApplication or Application#get), which doesn't seem
 to work, because the application isn't bound to the ThreadLocal.
 After searching in nabble I found some old threads ([1], [2]) suggesting
 this should actually work fine, but that doesn't seem to be the case.
 Is there any special configuration trick I have to apply to make this
 work, or are those old posts just (no longer) true?
 If anybody could confirm this is actually a bug, I'd create an issue
 in JIRA to have this fixed.

 Regards,
 Jonas

 [1]
 http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786
 [2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469


 --
 Sent from my SMTP compliant software
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: New Window/Tab Scope

2010-03-17 Thread Benjamin Ernst
Hi,

in my Application I need an Window/Tab-Scope to store data which is only
relevant for the current window/tab. So I tried what Johan said:

I made an override of createPageMap() in the SecondLevelCacheSessionStore
an wrapped the SecondLevelCachePageMap with my own IPageMap.

Now want to put my Wrapper-Pagemap in a ThreadLocal-Variable, so that I can
access it like the Session with a static get(). In the
SecondLevelCacheSessionStore I made an override on onBeginRequest(Request
request) where I got the PageMap-Name from the request end then get the
PageMap for this name. But this is not my Wrapper-PageMap, it is the the
SecondLevelCachePageMap which put in the Request-Attributes by dirty()
from the PageMap-Implementation.


How can I put my Wrapper-PageMap in a ThreadLocal-Variable, so that I can
access in any Page of my Wicket-Application?

Thanks for any help,

Benjamin



On Wed, Jun 4, 2008 at 4:01 PM, Johan Compagner jcompag...@gmail.comwrote:

 it can be done i guess..
 Turn on the multi window support/check in the settings.

 then extend: SecondLevelCacheSessionStore

 override createPageMap()

 now the bad thing is that you need to do super call to create it because
 that api is not really open

 But do a super call. And wrap it in your own IPageMap impl where you also
 store youre stuff
 and redirect all other calls to the pagemap

 i think this should work..

 johan


 On Wed, Jun 4, 2008 at 4:33 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  nothing right now because its not implemented yet. in the future you
  will have access to a Window class and be able to subclass it to store
  your own data, just like you do with Session now...
 
  -igor
 
  On Wed, Jun 4, 2008 at 7:29 AM, geke georg_kuf...@yahoo.de wrote:
  
   Hi,
  
   I need a scope for every new window/tab, where I can put some data.
   I read, that is in the wishlist for wicket 1.5, but are there any best
   practices or suggestions?
  
   Kind regards,
  
   Georg
   --
   View this message in context:
  http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Wicket.replaceOuterHtml problems in Gecko

2010-03-17 Thread martin-g

Thanks Igor!

It was div in tr


igor.vaynberg wrote:
 
 i have seen that happen when you have invalid markup. like a div
 inside a span, or a div directly inside a tr. check your page for
 stuff like that.
 
 -igor
 
 On Tue, Mar 16, 2010 at 10:02 AM, Martin Grigorov mcgreg...@e-card.bg
 wrote:
 Hi,

 I'm experiencing a weird problem with Wicket Ajax in Firefox 3.6 (I
 didn't test in older versions of FF).

 Basically my code looks like this:

 final TextFieldString textField = new TextFieldString(text, new
 PropertyModelString(this, text));
 textField.setOutputMarkupId(true);
 textField.setOutputMarkupPlaceholderTag(true);
 textField.setVisible(false);

 add(textField);

 final AjaxLinkVoid link = new AjaxLinkVoid(link) {
        private static final long serialVersionUID = 1L;

        boolean toShow = true;

       �...@override
        public void onClick(AjaxRequestTarget target) {
                textField.setVisible(toShow);
                toShow = !toShow;
                target.addComponent(textField);
        }
 };

 and the html :
 div
        input wicket:id=text/
 /div
  link 

 The basic idea is to switch the visibility of a TextField, the initial
 state is not visible.

 This works pretty well in IE (tested in 7 and 8) and Chrome (tested with
 ver.5 on Linux).
 Unfortunately the most reliable browser makes something very weird -
 every re-render with visibility==true it appends one more div element
 around the input element:

 div  (this is my div from the template)
  div xmlns=http://www.w3.org/1999/xhtml;  (this one is added by FF)
     div xmlns=http://www.w3.org/1999/xhtml; (this one is added by
 FF)
       input id=text2e name= value=.../
     /div
  /div
 /div

 I created a simple quickstart application and there everything is
 working fine. So it looks to me that FF confuses somehow with the
 complex html structure of my page.

 Did anyone have such problems before ?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Wicket.replaceOuterHtml-problems-in-Gecko-tp27921435p27928225.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Simple javascript from wicket

2010-03-17 Thread marioosh.net
I have container and buttons element in my template:

div wicket:id=container
span
...
/span
span wicket:id=buttons style=display: none;
a href=# wicket:id=editE/a
a href=# wicket:id=deleteD/a
/span
/div

and java:
container.add(new AjaxEventBehavior(onmouseover) {
protected void onEvent(AjaxRequestTarget target) {
buttons.add(new 
SimpleAttributeModifier(style, display: ;));
target.addComponent(buttons);
}
});

On mouseover container i show buttons, but i think it sends request to
server in that way.
Is possible to change style in js only (but programming in wicket),
not sending request to server ?
How in wicket do some js work, but not interacting with server ?

-- 
Greetings,
marioosh

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



HttpsRequestCycleProcessor not immediately redirecting to https

2010-03-17 Thread Gianni
As part of a product purchase workflow I require users to sign-in or register a 
new account in order to continue.
In my purchase page I'm checking if the user is already signed-in and if not I 
send them to a SignInOrRegisterPage which has the @RequireHttps annotation.

BookingPage dest = new BookingPage(product);
if (signedIn) {
setResponsePage(dest);
} else {
session.getDefaultPageMap().put(dest);
PageReference destPageRef = dest.getPageReference();
setResponsePage(new SignInOrRegisterPage(destPageRef));
}

@RequireHttps
public class SignInOrRegisterPage extends StandardBasePage {
private PageReference destination;

public SignInOrRegisterPage(PageReference finalDest) {
..

In MyApplication:
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
HttpsConfig config = new HttpsConfig(MyApplication.get().getHttpPort(), 
MyApplication.get().getHttpsPort());
return new HttpsRequestCycleProcessor(config) {
@Override
protected IRequestCodingStrategy newRequestCodingStrategy() {
return new CryptedUrlWebRequestCodingStrategy(new 
WebRequestCodingStrategy());
}
};
}


The initial redirection to SignInOrRegisterPage does not go to https, only when 
I submit the form on the http SignInOrRegisterPage does it then redirect to 
https.
Any ideas why it's not going immediately to https?
Thanks
Gianni
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Prevent SessionExpiredPage from opening in a modal window

2010-03-17 Thread Martin Asenov
Hello, guys!

I'm, wondering if I could prevent my sessionExpiredPage from opening in a modal 
window. In case the user opens a modal window and goes away for a while and in 
the meantime the session gets expired, I don't want when he comes back and 
clicks inside the modal window to see the session expired page with a button 
'Go to home page in the modal. Afterwards, of course, if he clicks on the link 
he'll get home page shown inside the modal. I want to prevent this.

Any hints or ideas?

Best,
Martin


Re: Invoke method after onPopulate

2010-03-17 Thread Xavier López
Thank you, I ended up doing it client-side, but I appreciate the feedback,
I'm sure it will be useful in another moment.

Cheers,
Xavier

2010/3/16 Igor Vaynberg igor.vaynb...@gmail.com

 you can override onbeforerender, call super first, then iterate over
 the children and do what you need to.

 -igor

 On Tue, Mar 16, 2010 at 6:44 AM, Xavier López xavil...@gmail.com wrote:
  Hi,
 
  I have a ListView that build up a list of checks. These Checks have all
 to
  be enabled or disabled depending on a bean's property. That property is
  binded to a general checkbox (outside the listview). When the user
 changes
  the selection on the main checkbox, the ones in the listview
 enable/disable.
  Now, I see that I can't use the same method I use in the Ajax Behavior,
  because at constructor time, the ListView has not been populated yet.
 
  Is there a way to invoke a method after ListView' s onPopulate() ?
  Is it a better approach to override isEnabled() on those Checks ? The
 bean
  holding the property to decide it is large, I think I should use a binded
  model in this case (getModel().bind(generalProperty), or the
 propertyModel
  from the general checkbox).
 
  Thanks,
  Xavier
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Klein bottle for rent--inquire within.


Re: Wicket.replaceOuterHtml problems in Gecko

2010-03-17 Thread Martin Grigorov
Hi Martijn,

I have two problems with your filter:
1) The main problem is that our pages does not have XHTML doctype.
The pages are XML well formed but this is not enough.
I tried once to set this doctype and the browsers rendered them in a
very funny (and broken) way. The HTML and probably CSS will need some
work to make it XHTML complaint.

2) do you really use Maven 'test' scope for this dependency ?
MyApp.java is not in src/test/java and thus cannot see
HtmlValidationResponseFilter.
Changing the scope to 'provided' fixes the problem.
This way I need to remove the 'import' and provide fully qualified path
to the filter class inside if (development). This works fine in Jetty
(development) and is not being packaged in the .war for production.

Unfortunately problem 1) is not resolvable for me and I cannot use the
filter.

Thanks ! 

On Wed, 2010-03-17 at 09:01 +0100, Martijn Dashorst wrote:
 Shameless plug (but it has helped our company's HTML considerably):
 
 You could consider using the html validator filter for that
 (http://github.com/dashorst/wicket-stuff-markup-validator)
 
 Martijn
 
 On Tue, Mar 16, 2010 at 6:10 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
  i have seen that happen when you have invalid markup. like a div
  inside a span, or a div directly inside a tr. check your page for
  stuff like that.
 
  -igor
 
  On Tue, Mar 16, 2010 at 10:02 AM, Martin Grigorov mcgreg...@e-card.bg 
  wrote:
  Hi,
 
  I'm experiencing a weird problem with Wicket Ajax in Firefox 3.6 (I
  didn't test in older versions of FF).
 
  Basically my code looks like this:
 
  final TextFieldString textField = new TextFieldString(text, new
  PropertyModelString(this, text));
  textField.setOutputMarkupId(true);
  textField.setOutputMarkupPlaceholderTag(true);
  textField.setVisible(false);
 
  add(textField);
 
  final AjaxLinkVoid link = new AjaxLinkVoid(link) {
 private static final long serialVersionUID = 1L;
 
 boolean toShow = true;
 
 @Override
 public void onClick(AjaxRequestTarget target) {
 textField.setVisible(toShow);
 toShow = !toShow;
 target.addComponent(textField);
 }
  };
 
  and the html :
  div
 input wicket:id=text/
  /div
  a wicket:id=linklink/a
 
  The basic idea is to switch the visibility of a TextField, the initial
  state is not visible.
 
  This works pretty well in IE (tested in 7 and 8) and Chrome (tested with
  ver.5 on Linux).
  Unfortunately the most reliable browser makes something very weird -
  every re-render with visibility==true it appends one more div element
  around the input element:
 
  div  (this is my div from the template)
   div xmlns=http://www.w3.org/1999/xhtml;  (this one is added by FF)
  div xmlns=http://www.w3.org/1999/xhtml; (this one is added by
  FF)
input id=text2e name= value=.../
  /div
   /div
  /div
 
  I created a simple quickstart application and there everything is
  working fine. So it looks to me that FF confuses somehow with the
  complex html structure of my page.
 
  Did anyone have such problems before ?
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Testing DataTable simulating click on link, checkbox etc...

2010-03-17 Thread Priyanka Tiwari

i m working on the datatable and provide links to every link through panel
but when click on it it fetch error  that wicket id of link not found in FF
but working fine inIE
-- 
View this message in context: 
http://old.nabble.com/Testing-DataTable-simulating-click-on-link%2C-checkbox-etc...-tp17533033p27929715.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Problem getting certificate into Session

2010-03-17 Thread Jan Schaefer
Hi all,

I am using wicket 1.4.7.
I have problems getting a security certificate into the session object.
Doing it the wicket way would be to do it in the newSession method of
the Application - I think:
@Override
public Session newSession(Request request, Response response) {
MySession newSession = new MySession(request);
WebRequest webRequest = (WebRequest) request;
HttpServletRequest httpRequest = webRequest.getHttpServletRequest();
_log.info(httpRequest.toString());
Object object =
httpRequest.getAttribute(X509_CERTIFICATE_ATTRIBUTE);
X509Certificate[] certificates = (X509Certificate[]) object;
newSession.setCertificates(certificates);
return newSession;
}

The problem is that the
httpRequest.getAttribute(X509_CERTIFICATE_ATTRIBUTE); returns null. When
I do the evil not so wicket way later in the logIn-Page after a Click on
a Cert-SignIn Button it works fine:
@Override
public void onSubmit() {
   ServletWebRequest servletWebRequest =
(ServletWebRequest) getRequest();
   HttpServletRequest request =
servletWebRequest.getHttpServletRequest();
   certificates = (X509Certificate[])
request.getAttribute(X509_CERTIFICATE_ATTRIBUTE);
   getLogInService().authenticate(certificates);
}

It seems that the first request to the application of a user does
trigger the newSession method, but it is before the user was redirected
to the https-login-page which requests the certificate...Can someone
tell me the proper way to do this or is this even a wicket bug? I think
it should be a common problem to get certificates into your web session?

My webapp runs in a Jetty Server.

Thanks in advance,
Jan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket.replaceOuterHtml problems in Gecko

2010-03-17 Thread Martijn Dashorst
On Wed, Mar 17, 2010 at 10:28 AM, Martin Grigorov mcgreg...@e-card.bg wrote:
 Hi Martijn,

 I have two problems with your filter:
 1) The main problem is that our pages does not have XHTML doctype.
 The pages are XML well formed but this is not enough.
 I tried once to set this doctype and the browsers rendered them in a
 very funny (and broken) way. The HTML and probably CSS will need some
 work to make it XHTML complaint.

Probably you send out the document as mimetype application+xml which
causes the browsers to revert to strict mode. See [1] for more
information.

You could use html 4.01 transitional instead as the doctype, or xhtml
transitional.

Our application uses this:

!DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns:wicket

but sends out pages as: Content-Type:text/html;charset=UTF-8

As for #2: we use scope provided as well.

Martijn

[1] http://diveintohtml5.org/past.html#mime-types

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page Design Question

2010-03-17 Thread Bert
You can solve this using Wickets PropertyModels. Map the Components
that are part
of your domain models as usual (CompoundPropertyModel?) and use
PropertyModels for the others:

TextFieldString tf = new TextFieldString(myWicketID, new
PropertyModel(PageOrComponent.this, spezialAttribute));

than provide getter and setter in your PageOrComponent class for that
spezialAttribute.

Bert

On Tue, Mar 16, 2010 at 15:19, Vladimir K koval...@gmail.com wrote:

 Wiket provides PropertyModel class to map to values accessible via
 expressions.
 You always can write your own models. For instance you can employ Spring
 property expressions if you'd like map on collection projection.
 You can yield values using great Google collections framework.


 Steven Haines wrote:

 First, thanks for your help yesterday with the form id question,
 setMarkupId() solved my problem.

 I have a generic page design question for you: how do you handle
 situations when your page form does not map easily to your domain objects?
 I can map 90% of the form's fields to my domain object, but there are a
 couple fields from which I derive values on my domain object. I can solve
 this by creating a Java object that maps one-to-one with my form and then
 constructing my domain object(s) from that form object, but is there a
 better way / best practice way of handling this situation?

 Thanks for your insight!
 Steve

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context: 
 http://old.nabble.com/Page-Design-Question-tp27918033p27918501.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Application#get in WicketSessionFilter

2010-03-17 Thread Erik van Oosten
That sounds great. Could you update the wiki page with the specifics for 
Wicket 1.4.8?


Regards,
Erik.


Op 17-03-10 08:20, Jonas schreef:

Thanks, Erik, that code would do the trick, too. I've implemented
a different workaround, though. In the next release of wicket (1.4.8),
WicketSessionFilter will 'expose' both the session and the application, Igor
already resolved my JIRA Issue [1]. BTW: Thanks to Igor for picking that
up so quickly!

cheers,
Jonas


[1] https://issues.apache.org/jira/browse/WICKET-2778

On Tue, Mar 16, 2010 at 9:05 PM, Erik van Oostene.vanoos...@grons.nl  wrote:
   

Hi Jonas,

Perhaps this is what you need:
http://cwiki.apache.org/WICKET/springbean-outside-wicket.html

Regards,
   Erik.


Jonas wrote:
 

Hi all,

we're using WicketSessionFilter in our product to access
our custom WebSession, which works fine. Now we've tried
to also access the org.apache.wicket.Application (e.g. using
Session#getApplication or Application#get), which doesn't seem
to work, because the application isn't bound to the ThreadLocal.
After searching in nabble I found some old threads ([1], [2]) suggesting
this should actually work fine, but that doesn't seem to be the case.
Is there any special configuration trick I have to apply to make this
work, or are those old posts just (no longer) true?
If anybody could confirm this is actually a bug, I'd create an issue
in JIRA to have this fixed.

Regards,
Jonas

[1]
http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786
[2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469

   


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Application#get in WicketSessionFilter

2010-03-17 Thread Jonas
I just reviewed the code Igor for the fix Igor implemented [1], and I
don't think
it will be a drop-in replacement for the code in the wiki, since it only exposes
the application if there's an active HttpSession. The code from the wiki on the
other hand always exposes the Application.
In the patch I proposed, I also always exposed the Application. Unfortunately,
my patch didn't properly handle exceptions (I should have put it all
into a try finally
block), I guess that's why Igor didn't use it, but chose to do a
different implementation.
I'm not sure why the Application isn't always exposed - I don't think
it should have
any side effects, since the Application is already shared between
multiple threads,
but I'm not aware of all wicket internals. Maybe Igor can shed some
light on this issue?

cheers,
Jonas


[1] 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.java?revision=922335view=markup

On Wed, Mar 17, 2010 at 1:37 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 That sounds great. Could you update the wiki page with the specifics for
 Wicket 1.4.8?

 Regards,
    Erik.


 Op 17-03-10 08:20, Jonas schreef:

 Thanks, Erik, that code would do the trick, too. I've implemented
 a different workaround, though. In the next release of wicket (1.4.8),
 WicketSessionFilter will 'expose' both the session and the application,
 Igor
 already resolved my JIRA Issue [1]. BTW: Thanks to Igor for picking that
 up so quickly!

 cheers,
 Jonas


 [1] https://issues.apache.org/jira/browse/WICKET-2778

 On Tue, Mar 16, 2010 at 9:05 PM, Erik van Oostene.vanoos...@grons.nl
  wrote:


 Hi Jonas,

 Perhaps this is what you need:
 http://cwiki.apache.org/WICKET/springbean-outside-wicket.html

 Regards,
   Erik.


 Jonas wrote:


 Hi all,

 we're using WicketSessionFilter in our product to access
 our custom WebSession, which works fine. Now we've tried
 to also access the org.apache.wicket.Application (e.g. using
 Session#getApplication or Application#get), which doesn't seem
 to work, because the application isn't bound to the ThreadLocal.
 After searching in nabble I found some old threads ([1], [2]) suggesting
 this should actually work fine, but that doesn't seem to be the case.
 Is there any special configuration trick I have to apply to make this
 work, or are those old posts just (no longer) true?
 If anybody could confirm this is actually a bug, I'd create an issue
 in JIRA to have this fixed.

 Regards,
 Jonas

 [1]

 http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786
 [2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469



 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang

Hello, I understand that there must be a solution for this. I googled for some 
time and found one or two results that seem to match what I am looking but they 
did not answer my question. Tried myself, not successful. So I want to ask 
folks here. I have a form and it has a dropdown list. Here are my requirements:

1. Replace Choose one with a blank line

2. This blank line is the first option and it is always listed no matter 
whether a value is selected or not, no matter whether the form field of this 
dropdown list is required or not.

3. I am using ChoiceRenderer to convert between selection and objects.

4. This behavior is applicable to all DropDownChoice. 

How can meet these requirement?

Thanks for your help!

Regards.


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket-jmx

2010-03-17 Thread Istvan Soos
Hi,

Is there any documentation around wicket-jmx? I've found only a few blog
entry so far, but not much in detail... (e.g. how to initialize it)

Thanks,
   Istvan


RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
Hi, David!

Let's presume your webapplication class is called WebApp.java. In the same 
directory where it is present, create WebApp.properties with the following line:

null=

that way every single 'choose one' label will be replaced with .

P.S. Don't forget to include the props files in the pom as a resource.

Best,
Martin

-Original Message-
From: David Chang [mailto:david_q_zh...@yahoo.com] 
Sent: Wednesday, March 17, 2010 3:03 PM
To: users@wicket.apache.org
Subject: Replace Choose one from DropDownChoice?


Hello, I understand that there must be a solution for this. I googled for some 
time and found one or two results that seem to match what I am looking but they 
did not answer my question. Tried myself, not successful. So I want to ask 
folks here. I have a form and it has a dropdown list. Here are my requirements:

1. Replace Choose one with a blank line

2. This blank line is the first option and it is always listed no matter 
whether a value is selected or not, no matter whether the form field of this 
dropdown list is required or not.

3. I am using ChoiceRenderer to convert between selection and objects.

4. This behavior is applicable to all DropDownChoice. 

How can meet these requirement?

Thanks for your help!

Regards.


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Makundi
It's just a localization property dropdownchoice-id.null or
dropdownchoice-id.nullValid if that's what you want to change?

**
Martin

2010/3/17 David Chang david_q_zh...@yahoo.com:

 Hello, I understand that there must be a solution for this. I googled for 
 some time and found one or two results that seem to match what I am looking 
 but they did not answer my question. Tried myself, not successful. So I want 
 to ask folks here. I have a form and it has a dropdown list. Here are my 
 requirements:

 1. Replace Choose one with a blank line

 2. This blank line is the first option and it is always listed no matter 
 whether a value is selected or not, no matter whether the form field of this 
 dropdown list is required or not.

 3. I am using ChoiceRenderer to convert between selection and objects.

 4. This behavior is applicable to all DropDownChoice.

 How can meet these requirement?

 Thanks for your help!

 Regards.




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
Martin,

Thanks so much for chiming in. I tried the 

null=

approach. The blank line in the dropdown list simply disappears. As I said in 
my requirements, I hope to have it there no matter whether a value is selected 
or not, no matter whether it is a required field or not.

Again, thanks for help!
Best,
David

--- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote:

 From: Martin Asenov mase...@velti.com
 Subject: RE: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 9:08 AM
 Hi, David!
 
 Let's presume your webapplication class is called
 WebApp.java. In the same directory where it is present,
 create WebApp.properties with the following line:
 
 null=
 
 that way every single 'choose one' label will be replaced
 with .
 
 P.S. Don't forget to include the props files in the pom as
 a resource.
 
 Best,
 Martin
 
 -Original Message-
 From: David Chang [mailto:david_q_zh...@yahoo.com]
 
 Sent: Wednesday, March 17, 2010 3:03 PM
 To: users@wicket.apache.org
 Subject: Replace Choose one from DropDownChoice?
 
 
 Hello, I understand that there must be a solution for this.
 I googled for some time and found one or two results that
 seem to match what I am looking but they did not answer my
 question. Tried myself, not successful. So I want to ask
 folks here. I have a form and it has a dropdown list. Here
 are my requirements:
 
 1. Replace Choose one with a blank line
 
 2. This blank line is the first option and it is always
 listed no matter whether a value is selected or not, no
 matter whether the form field of this dropdown list is
 required or not.
 
 3. I am using ChoiceRenderer to convert between selection
 and objects.
 
 4. This behavior is applicable to all DropDownChoice. 
 
 How can meet these requirement?
 
 Thanks for your help!
 
 Regards.
 
 
       
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Phee

You have to add a selection choice that is just a blank line option.

This is a typical requirement for any dropdown if you wan the use to  
be able to clear their choice.



On Mar 17, 2010, at 8:47 AM, David Chang wrote:


Martin,

Thanks so much for chiming in. I tried the

null=

approach. The blank line in the dropdown list simply disappears. As  
I said in my requirements, I hope to have it there no matter whether  
a value is selected or not, no matter whether it is a required field  
or not.


Again, thanks for help!
Best,
David

--- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote:



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to delete an item from List view.

2010-03-17 Thread prati

Hi

I have got a refreshingView with a delete link in each row and only one
AddLink,AddLink adds the 

row properly but deleteRow everytime deletes the last row,its driving me
crazy,I have posted my 

code also.I will apprecaite if any one can help me in this.

Honestly its not that easy the way it seams.


Thanks

Prati 



prati wrote:
 
 Hi,
 
 I am also having similar issue, it all the time removes last row.
 I have attached code.
 
 
 OptionGroupPageForm(String id) {
 
   super(id);
 
   final MarkupContainer rowPanel = new 
 WebMarkupContainer(rowPanel);
   rowPanel.setOutputMarkupId(true);
   add(rowPanel);
 
   // List all rows
 
 
   rows.add(new String());
 
   RefreshingView lv = new RefreshingView(rows) {
 
   @Override
   protected IteratorIModel getItemModels()
   {
   List models = new ArrayList();
 
   for(int i=0;irows.size();i++){
   models.add(new Model( (String) 
 rows.get(i)));
   }
 
   return models.iterator(); 
   //return rows.iterator();
   }
 
   @Override
   protected void populateItem(final Item item) {
 
   int index = item.getIndex() + 1;
 
   item.add(new Label(index, 
 Option+index + .));
 
   TextField text = new TextField(text, 
 item.getModel());
 
   RadioChoice rc = new 
 RadioChoice(status, STATUS);
 
   item.add(text);
 
   item.add(rc);
 
   item.add(new AjaxLink(removeRow) {
 
   @Override
   public void 
 onClick(AjaxRequestTarget target) {
 
 
   
 
   if (target != null) {
   
 target.addComponent(rowPanel);
   }
   }
   } );
   }
   };
 
   
 lv.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());
   rowPanel.add(lv);
 
   AjaxSubmitLink addLink = new AjaxSubmitLink(addRow, 
 this) {
   @Override
   public void onSubmit(AjaxRequestTarget target, 
 Form form) {
 
   rows.add(new String());
 
 
 
   if (target != null)
   target.addComponent(rowPanel);
   }
   };
 
   addLink.setDefaultFormProcessing(false);
 
   add(addLink);
 
 
 
 
   }
 
 Thanks
 
  Prati
 
 Johan Compagner wrote:
 
 You do use a delete button, so i guess the values are submitted.
 Then if you store those first in the model objects you won't loose
 anything
 
 johan
 
 
 
 On Feb 4, 2008 2:35 PM, pnerkar pner...@gmail.com wrote:
 

 Hi Johan,

 Yes that will be quickest solution ,
 But this will clear the fields of all vehicles.

 -Pnerkar


 Johan Compagner wrote:
 
  wasn't the quickest solution:
 
  public void onSubmit() {
 List vehicles = (List)
 getParent().getParent().getModelObject();
 vehicles.remove(index);
 listView.removeAll();
  }
 
  Then if the list itself is stable on the server side (if other persons
 can
  also delete or add stuff to that list you really should do it
 differently)
  that should work fine. After you alter the listviews model you have to
  remove all the items so that it will rebuild
 
  johan
 
 
 
 
  On Feb 1, 2008 12:49 AM, pnerkar pner...@gmail.com wrote:
 
 
  Hi All,
 
  I have rendered a list view on a Web Page.
 
  vehicle1X
  vehicle2X
  vehicle3X
 
  when a person click on 'X', that item should be deleted.
  But I'm facing an issue, when i click on 'X', last item get deleted.
  Actually when I delete vehicle2 from my list, it deletes vehicle2 but
  that
  component is still there.
  So while rendering it render vehicle1  vehicle2.
 
  public void onSubmit() {
 List vehicles = (List)
 getParent().getParent().getModelObject();
 vehicles.remove(index);
  }
 
  can please 

Re: How to delete an item from List view.

2010-03-17 Thread prati

Hi Team,

Also i dont want to remove values , i want to remove the entire row.
My row contains(TextBox and option group)


Thanks
Prati


prati wrote:
 
 Hi
 
 I have got a refreshingView with a delete link in each row and only one
 AddLink,AddLink adds the 
 
 row properly but deleteRow everytime deletes the last row,its driving me
 crazy,I have posted my 
 
 code also.I will apprecaite if any one can help me in this.
 
 Honestly its not that easy the way it seams.
 
 
 Thanks
 
 Prati 
 
 
 
 prati wrote:
 
 Hi,
 
 I am also having similar issue, it all the time removes last row.
 I have attached code.
 
 
 OptionGroupPageForm(String id) {
 
  super(id);
 
  final MarkupContainer rowPanel = new 
 WebMarkupContainer(rowPanel);
  rowPanel.setOutputMarkupId(true);
  add(rowPanel);
 
  // List all rows
 
 
  rows.add(new String());
 
  RefreshingView lv = new RefreshingView(rows) {
 
  @Override
  protected IteratorIModel getItemModels()
  {
  List models = new ArrayList();
 
  for(int i=0;irows.size();i++){
  models.add(new Model( (String) 
 rows.get(i)));
  }
 
  return models.iterator(); 
  //return rows.iterator();
  }
 
  @Override
  protected void populateItem(final Item item) {
 
  int index = item.getIndex() + 1;
 
  item.add(new Label(index, 
 Option+index + .));
 
  TextField text = new TextField(text, 
 item.getModel());
 
  RadioChoice rc = new 
 RadioChoice(status, STATUS);
 
  item.add(text);
 
  item.add(rc);
 
  item.add(new AjaxLink(removeRow) {
 
  @Override
  public void 
 onClick(AjaxRequestTarget target) {
 
 
  
 
  if (target != null) {
  
 target.addComponent(rowPanel);
  }
  }
  } );
  }
  };
 
  
 lv.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());
  rowPanel.add(lv);
 
  AjaxSubmitLink addLink = new AjaxSubmitLink(addRow, 
 this) {
  @Override
  public void onSubmit(AjaxRequestTarget target, 
 Form form) {
 
  rows.add(new String());
 
 
 
  if (target != null)
  target.addComponent(rowPanel);
  }
  };
 
  addLink.setDefaultFormProcessing(false);
 
  add(addLink);
 
 
 
 
  }
 
 Thanks
 
  Prati
 
 Johan Compagner wrote:
 
 You do use a delete button, so i guess the values are submitted.
 Then if you store those first in the model objects you won't loose
 anything
 
 johan
 
 
 
 On Feb 4, 2008 2:35 PM, pnerkar pner...@gmail.com wrote:
 

 Hi Johan,

 Yes that will be quickest solution ,
 But this will clear the fields of all vehicles.

 -Pnerkar


 Johan Compagner wrote:
 
  wasn't the quickest solution:
 
  public void onSubmit() {
 List vehicles = (List)
 getParent().getParent().getModelObject();
 vehicles.remove(index);
 listView.removeAll();
  }
 
  Then if the list itself is stable on the server side (if other
 persons
 can
  also delete or add stuff to that list you really should do it
 differently)
  that should work fine. After you alter the listviews model you have
 to
  remove all the items so that it will rebuild
 
  johan
 
 
 
 
  On Feb 1, 2008 12:49 AM, pnerkar pner...@gmail.com wrote:
 
 
  Hi All,
 
  I have rendered a list view on a Web Page.
 
  vehicle1X
  vehicle2X
  vehicle3X
 
  when a person click on 'X', that item should be deleted.
  But I'm facing an issue, when i click on 'X', last item get deleted.
  Actually when I delete vehicle2 from my list, it deletes vehicle2
 but
  that
  component is still there.
  So while rendering it render vehicle1  vehicle2.
 
  public void onSubmit() {

Re: How to delete an item from List view.

2010-03-17 Thread Major Péter
Hi,

Been there, pal, believe me, been there. :))
See https://issues.apache.org/jira/browse/WICKET-2432 quickstart.zip
Remove the FileUpload and this should do it for you. :)

Best Regards,
Peter

2010-03-17 15:10 keltezéssel, prati írta:
 
 Hi
 
 I have got a refreshingView with a delete link in each row and only one
 AddLink,AddLink adds the 
 
 row properly but deleteRow everytime deletes the last row,its driving me
 crazy,I have posted my 
 
 code also.I will apprecaite if any one can help me in this.
 
 Honestly its not that easy the way it seams.
 
 
 Thanks
 
 Prati 
 
 
 
 prati wrote:

 Hi,

 I am also having similar issue, it all the time removes last row.
 I have attached code.


 OptionGroupPageForm(String id) {

  super(id);

  final MarkupContainer rowPanel = new 
 WebMarkupContainer(rowPanel);
  rowPanel.setOutputMarkupId(true);
  add(rowPanel);

  // List all rows


  rows.add(new String());

  RefreshingView lv = new RefreshingView(rows) {

  @Override
  protected IteratorIModel getItemModels()
  {
  List models = new ArrayList();

  for(int i=0;irows.size();i++){
  models.add(new Model( (String) 
 rows.get(i)));
  }

  return models.iterator(); 
  //return rows.iterator();
  }

  @Override
  protected void populateItem(final Item item) {

  int index = item.getIndex() + 1;

  item.add(new Label(index, 
 Option+index + .));

  TextField text = new TextField(text, 
 item.getModel());

  RadioChoice rc = new 
 RadioChoice(status, STATUS);

  item.add(text);

  item.add(rc);

  item.add(new AjaxLink(removeRow) {

  @Override
  public void 
 onClick(AjaxRequestTarget target) {


  

  if (target != null) {
  
 target.addComponent(rowPanel);
  }
  }
  } );
  }
  };

  
 lv.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());
  rowPanel.add(lv);

  AjaxSubmitLink addLink = new AjaxSubmitLink(addRow, 
 this) {
  @Override
  public void onSubmit(AjaxRequestTarget target, 
 Form form) {

  rows.add(new String());



  if (target != null)
  target.addComponent(rowPanel);
  }
  };

  addLink.setDefaultFormProcessing(false);

  add(addLink);




  }

 Thanks

  Prati

 Johan Compagner wrote:

 You do use a delete button, so i guess the values are submitted.
 Then if you store those first in the model objects you won't loose
 anything

 johan



 On Feb 4, 2008 2:35 PM, pnerkar pner...@gmail.com wrote:


 Hi Johan,

 Yes that will be quickest solution ,
 But this will clear the fields of all vehicles.

 -Pnerkar


 Johan Compagner wrote:

 wasn't the quickest solution:

 public void onSubmit() {
List vehicles = (List)
 getParent().getParent().getModelObject();
vehicles.remove(index);
listView.removeAll();
 }

 Then if the list itself is stable on the server side (if other persons
 can
 also delete or add stuff to that list you really should do it
 differently)
 that should work fine. After you alter the listviews model you have to
 remove all the items so that it will rebuild

 johan




 On Feb 1, 2008 12:49 AM, pnerkar pner...@gmail.com wrote:


 Hi All,

 I have rendered a list view on a Web Page.

 vehicle1X
 vehicle2X
 vehicle3X

 when a person click on 'X', that item should be deleted.
 But I'm facing an issue, when i click on 'X', last item get deleted.
 Actually when I delete vehicle2 from my list, it deletes vehicle2 but
 that
 component is still there.
 So while rendering it render vehicle1  vehicle2.

 public void onSubmit() {

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
I don't understand , Chang...

If you want non selection to be  , then say

null=  (without the quotes)

Otherwise if you don't want null selection, you say 
component.setNullValid(false); and you're fine

Best,
Martin

-Original Message-
From: David Chang [mailto:david_q_zh...@yahoo.com] 
Sent: Wednesday, March 17, 2010 3:48 PM
To: users@wicket.apache.org
Subject: RE: Replace Choose one from DropDownChoice?

Martin,

Thanks so much for chiming in. I tried the 

null=

approach. The blank line in the dropdown list simply disappears. As I said in 
my requirements, I hope to have it there no matter whether a value is selected 
or not, no matter whether it is a required field or not.

Again, thanks for help!
Best,
David

--- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote:

 From: Martin Asenov mase...@velti.com
 Subject: RE: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 9:08 AM
 Hi, David!
 
 Let's presume your webapplication class is called
 WebApp.java. In the same directory where it is present,
 create WebApp.properties with the following line:
 
 null=
 
 that way every single 'choose one' label will be replaced
 with .
 
 P.S. Don't forget to include the props files in the pom as
 a resource.
 
 Best,
 Martin
 
 -Original Message-
 From: David Chang [mailto:david_q_zh...@yahoo.com]
 
 Sent: Wednesday, March 17, 2010 3:03 PM
 To: users@wicket.apache.org
 Subject: Replace Choose one from DropDownChoice?
 
 
 Hello, I understand that there must be a solution for this.
 I googled for some time and found one or two results that
 seem to match what I am looking but they did not answer my
 question. Tried myself, not successful. So I want to ask
 folks here. I have a form and it has a dropdown list. Here
 are my requirements:
 
 1. Replace Choose one with a blank line
 
 2. This blank line is the first option and it is always
 listed no matter whether a value is selected or not, no
 matter whether the form field of this dropdown list is
 required or not.
 
 3. I am using ChoiceRenderer to convert between selection
 and objects.
 
 4. This behavior is applicable to all DropDownChoice. 
 
 How can meet these requirement?
 
 Thanks for your help!
 
 Regards.
 
 
       
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket-jmx

2010-03-17 Thread Istvan Soos
To answer my own question: just put the wicket-jmx.jar in the
classpath and enable the JMX server. That is it, really :)

Regards,
   Istvan

On Wed, Mar 17, 2010 at 2:04 PM, Istvan Soos istvan.s...@gmail.com wrote:

 Hi,
 Is there any documentation around wicket-jmx? I've found only a few blog 
 entry so far, but not much in detail... (e.g. how to initialize it)
 Thanks,
    Istvan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SV: Replace Choose one from DropDownChoice?

2010-03-17 Thread Wilhelmsen Tor Iver
Also setNullValid(true) otherwise the blank option will disappear once you have 
made a choice or the model has a value.

- Tor I.


 -Opprinnelig melding-
 Fra: Martin Asenov [mailto:mase...@velti.com]
 Sendt: 17. mars 2010 15:23
 Til: users@wicket.apache.org
 Emne: RE: Replace Choose one from DropDownChoice?
 
 I don't understand , Chang...
 
 If you want non selection to be  , then say
 
 null=  (without the quotes)
 
 Otherwise if you don't want null selection, you say
 component.setNullValid(false); and you're fine
 
 Best,
 Martin
 
 -Original Message-
 From: David Chang [mailto:david_q_zh...@yahoo.com]
 Sent: Wednesday, March 17, 2010 3:48 PM
 To: users@wicket.apache.org
 Subject: RE: Replace Choose one from DropDownChoice?
 
 Martin,
 
 Thanks so much for chiming in. I tried the
 
 null=
 
 approach. The blank line in the dropdown list simply disappears. As I
 said in my requirements, I hope to have it there no matter whether a
 value is selected or not, no matter whether it is a required field or
 not.
 
 Again, thanks for help!
 Best,
 David
 
 --- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote:
 
  From: Martin Asenov mase...@velti.com
  Subject: RE: Replace Choose one from DropDownChoice?
  To: users@wicket.apache.org users@wicket.apache.org
  Date: Wednesday, March 17, 2010, 9:08 AM
  Hi, David!
 
  Let's presume your webapplication class is called
  WebApp.java. In the same directory where it is present,
  create WebApp.properties with the following line:
 
  null=
 
  that way every single 'choose one' label will be replaced
  with .
 
  P.S. Don't forget to include the props files in the pom as
  a resource.
 
  Best,
  Martin
 
  -Original Message-
  From: David Chang [mailto:david_q_zh...@yahoo.com]
 
  Sent: Wednesday, March 17, 2010 3:03 PM
  To: users@wicket.apache.org
  Subject: Replace Choose one from DropDownChoice?
 
 
  Hello, I understand that there must be a solution for this.
  I googled for some time and found one or two results that
  seem to match what I am looking but they did not answer my
  question. Tried myself, not successful. So I want to ask
  folks here. I have a form and it has a dropdown list. Here
  are my requirements:
 
  1. Replace Choose one with a blank line
 
  2. This blank line is the first option and it is always
  listed no matter whether a value is selected or not, no
  matter whether the form field of this dropdown list is
  required or not.
 
  3. I am using ChoiceRenderer to convert between selection
  and objects.
 
  4. This behavior is applicable to all DropDownChoice.
 
  How can meet these requirement?
 
  Thanks for your help!
 
  Regards.
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
Martin, 

According to what you said, do I need to add special processing in 
ChoiceRenderer if this blank line is the selected and I need to convert 
selected value to object?

Thanks,
David

--- On Wed, 3/17/10, Martin Phee mp...@objectivearts.com wrote:

 From: Martin Phee mp...@objectivearts.com
 Subject: Re: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 10:05 AM
 You have to add a selection choice
 that is just a blank line option.
 
 This is a typical requirement for any dropdown if you wan
 the use to be able to clear their choice.
 
 
 On Mar 17, 2010, at 8:47 AM, David Chang wrote:
 
  Martin,
  
  Thanks so much for chiming in. I tried the
  
  null=
  
  approach. The blank line in the dropdown list simply
 disappears. As I said in my requirements, I hope to have it
 there no matter whether a value is selected or not, no
 matter whether it is a required field or not.
  
  Again, thanks for help!
  Best,
  David
  
  --- On Wed, 3/17/10, Martin Asenov mase...@velti.com
 wrote:
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread Martin Asenov
David, please describe the use case in more depths.

1)
You want a dropdownchoice with null selection, which is  ?

2)
You don't want a null selection to be there at all, but show the first element.

Best,
Martin

-Original Message-
From: David Chang [mailto:david_q_zh...@yahoo.com] 
Sent: Wednesday, March 17, 2010 4:31 PM
To: users@wicket.apache.org
Subject: Re: Replace Choose one from DropDownChoice?

Martin, 

According to what you said, do I need to add special processing in 
ChoiceRenderer if this blank line is the selected and I need to convert 
selected value to object?

Thanks,
David

--- On Wed, 3/17/10, Martin Phee mp...@objectivearts.com wrote:

 From: Martin Phee mp...@objectivearts.com
 Subject: Re: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 10:05 AM
 You have to add a selection choice
 that is just a blank line option.
 
 This is a typical requirement for any dropdown if you wan
 the use to be able to clear their choice.
 
 
 On Mar 17, 2010, at 8:47 AM, David Chang wrote:
 
  Martin,
  
  Thanks so much for chiming in. I tried the
  
  null=
  
  approach. The blank line in the dropdown list simply
 disappears. As I said in my requirements, I hope to have it
 there no matter whether a value is selected or not, no
 matter whether it is a required field or not.
  
  Again, thanks for help!
  Best,
  David
  
  --- On Wed, 3/17/10, Martin Asenov mase...@velti.com
 wrote:
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to delete an item from List view.

2010-03-17 Thread prati

Hi ListView/Refreshing View any willd o

but dont know how to solve this.

Thanks
P

prati wrote:
 
 Hi Team,
 
 Also i dont want to remove values , i want to remove the entire row.
 My row contains(TextBox and option group)
 
 
 Thanks
 Prati
 
 
 prati wrote:
 
 Hi
 
 I have got a refreshingView with a delete link in each row and only one
 AddLink,AddLink adds the 
 
 row properly but deleteRow everytime deletes the last row,its driving me
 crazy,I have posted my 
 
 code also.I will apprecaite if any one can help me in this.
 
 Honestly its not that easy the way it seams.
 
 
 Thanks
 
 Prati 
 
 
 
 prati wrote:
 
 Hi,
 
 I am also having similar issue, it all the time removes last row.
 I have attached code.
 
 
 OptionGroupPageForm(String id) {
 
 super(id);
 
 final MarkupContainer rowPanel = new 
 WebMarkupContainer(rowPanel);
 rowPanel.setOutputMarkupId(true);
 add(rowPanel);
 
 // List all rows
 
 
 rows.add(new String());
 
 RefreshingView lv = new RefreshingView(rows) {
 
 @Override
 protected IteratorIModel getItemModels()
 {
 List models = new ArrayList();
 
 for(int i=0;irows.size();i++){
 models.add(new Model( (String) 
 rows.get(i)));
 }
 
 return models.iterator(); 
 //return rows.iterator();
 }
 
 @Override
 protected void populateItem(final Item item) {
 
 int index = item.getIndex() + 1;
 
 item.add(new Label(index, 
 Option+index + .));
 
 TextField text = new TextField(text, 
 item.getModel());
 
 RadioChoice rc = new 
 RadioChoice(status, STATUS);
 
 item.add(text);
 
 item.add(rc);
 
 item.add(new AjaxLink(removeRow) {
 
 @Override
 public void 
 onClick(AjaxRequestTarget target) {
 
 
 
 
 if (target != null) {
 
 target.addComponent(rowPanel);
 }
 }
 } );
 }
 };
 
 
 lv.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());
 rowPanel.add(lv);
 
 AjaxSubmitLink addLink = new AjaxSubmitLink(addRow, 
 this) {
 @Override
 public void onSubmit(AjaxRequestTarget target, 
 Form form) {
 
 rows.add(new String());
 
 
 
 if (target != null)
 target.addComponent(rowPanel);
 }
 };
 
 addLink.setDefaultFormProcessing(false);
 
 add(addLink);
 
 
 
 
 }
 
 Thanks
 
  Prati
 
 Johan Compagner wrote:
 
 You do use a delete button, so i guess the values are submitted.
 Then if you store those first in the model objects you won't loose
 anything
 
 johan
 
 
 
 On Feb 4, 2008 2:35 PM, pnerkar pner...@gmail.com wrote:
 

 Hi Johan,

 Yes that will be quickest solution ,
 But this will clear the fields of all vehicles.

 -Pnerkar


 Johan Compagner wrote:
 
  wasn't the quickest solution:
 
  public void onSubmit() {
 List vehicles = (List)
 getParent().getParent().getModelObject();
 vehicles.remove(index);
 listView.removeAll();
  }
 
  Then if the list itself is stable on the server side (if other
 persons
 can
  also delete or add stuff to that list you really should do it
 differently)
  that should work fine. After you alter the listviews model you have
 to
  remove all the items so that it will rebuild
 
  johan
 
 
 
 
  On Feb 1, 2008 12:49 AM, pnerkar pner...@gmail.com wrote:
 
 
  Hi All,
 
  I have rendered a list view on a Web Page.
 
  vehicle1X
  vehicle2X
  vehicle3X
 
  when a person click on 'X', that item should be deleted.
  But I'm facing an issue, when i click on 'X', last item get
 deleted.
  Actually when I delete vehicle2 from my list, it deletes vehicle2
 but
  that
  component is still there.
  So while 

gmap2 opera slow

2010-03-17 Thread Gatos
Hello,

I have noticed that in opera gmap2 is more slow that in FF. I have checked
maps.google.com and it seems to be faster.
Does any1 know what could be the cause of the problem?


Thank you


Re: SV: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
I tried this one. It works. Summarized what I did based on input from folks 
here:

1. set null =  in property file (remove  properties file)

2. call setNullValid(true) on the DropDownChoice object.

Thanks for help!!!

Regards.

--- On Wed, 3/17/10, Wilhelmsen Tor Iver toriv...@arrive.no wrote:

 From: Wilhelmsen Tor Iver toriv...@arrive.no
 Subject: SV: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 10:23 AM
 Also setNullValid(true) otherwise the
 blank option will disappear once you have made a choice or
 the model has a value.
 
 - Tor I.
 
 
  -Opprinnelig melding-
  Fra: Martin Asenov [mailto:mase...@velti.com]
  Sendt: 17. mars 2010 15:23
  Til: users@wicket.apache.org
  Emne: RE: Replace Choose one from DropDownChoice?
  
  I don't understand , Chang...
  
  If you want non selection to be  , then say
  
  null=  (without the quotes)
  
  Otherwise if you don't want null selection, you say
  component.setNullValid(false); and you're fine
  
  Best,
  Martin
  
  -Original Message-
  From: David Chang [mailto:david_q_zh...@yahoo.com]
  Sent: Wednesday, March 17, 2010 3:48 PM
  To: users@wicket.apache.org
  Subject: RE: Replace Choose one from
 DropDownChoice?
  
  Martin,
  
  Thanks so much for chiming in. I tried the
  
  null=
  
  approach. The blank line in the dropdown list simply
 disappears. As I
  said in my requirements, I hope to have it there no
 matter whether a
  value is selected or not, no matter whether it is a
 required field or
  not.
  
  Again, thanks for help!
  Best,
  David
  
  --- On Wed, 3/17/10, Martin Asenov mase...@velti.com
 wrote:
  
   From: Martin Asenov mase...@velti.com
   Subject: RE: Replace Choose one from
 DropDownChoice?
   To: users@wicket.apache.org
 users@wicket.apache.org
   Date: Wednesday, March 17, 2010, 9:08 AM
   Hi, David!
  
   Let's presume your webapplication class is
 called
   WebApp.java. In the same directory where it is
 present,
   create WebApp.properties with the following
 line:
  
   null=
  
   that way every single 'choose one' label will be
 replaced
   with .
  
   P.S. Don't forget to include the props files in
 the pom as
   a resource.
  
   Best,
   Martin
  
   -Original Message-
   From: David Chang [mailto:david_q_zh...@yahoo.com]
  
   Sent: Wednesday, March 17, 2010 3:03 PM
   To: users@wicket.apache.org
   Subject: Replace Choose one from
 DropDownChoice?
  
  
   Hello, I understand that there must be a solution
 for this.
   I googled for some time and found one or two
 results that
   seem to match what I am looking but they did not
 answer my
   question. Tried myself, not successful. So I want
 to ask
   folks here. I have a form and it has a dropdown
 list. Here
   are my requirements:
  
   1. Replace Choose one with a blank line
  
   2. This blank line is the first option and it is
 always
   listed no matter whether a value is selected or
 not, no
   matter whether the form field of this dropdown
 list is
   required or not.
  
   3. I am using ChoiceRenderer to convert between
 selection
   and objects.
  
   4. This behavior is applicable to all
 DropDownChoice.
  
   How can meet these requirement?
  
   Thanks for your help!
  
   Regards.
  
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
Martin,

Very sorry for being confusing to you. Here is what I want:

I want blank line is always there, no matter whether a value is selected or 
not, no matter whether the field is required or not.

I am using ChoiceRenderer to convert a selected option to objects.

Thanks, David



--- On Wed, 3/17/10, Martin Asenov mase...@velti.com wrote:

 From: Martin Asenov mase...@velti.com
 Subject: RE: Replace Choose one from DropDownChoice?
 To: users@wicket.apache.org users@wicket.apache.org
 Date: Wednesday, March 17, 2010, 10:34 AM
 David, please describe the use case
 in more depths.
 
 1)
 You want a dropdownchoice with null selection, which is 
 ?
 
 2)
 You don't want a null selection to be there at all, but
 show the first element.
 
 Best,
 Martin
 
 -Original Message-
 From: David Chang [mailto:david_q_zh...@yahoo.com]
 
 Sent: Wednesday, March 17, 2010 4:31 PM
 To: users@wicket.apache.org
 Subject: Re: Replace Choose one from DropDownChoice?
 
 Martin, 
 
 According to what you said, do I need to add special
 processing in ChoiceRenderer if this blank line is the
 selected and I need to convert selected value to object?
 
 Thanks,
 David
 
 --- On Wed, 3/17/10, Martin Phee mp...@objectivearts.com
 wrote:
 
  From: Martin Phee mp...@objectivearts.com
  Subject: Re: Replace Choose one from
 DropDownChoice?
  To: users@wicket.apache.org
  Date: Wednesday, March 17, 2010, 10:05 AM
  You have to add a selection choice
  that is just a blank line option.
  
  This is a typical requirement for any dropdown if you
 wan
  the use to be able to clear their choice.
  
  
  On Mar 17, 2010, at 8:47 AM, David Chang wrote:
  
   Martin,
   
   Thanks so much for chiming in. I tried the
   
   null=
   
   approach. The blank line in the dropdown list
 simply
  disappears. As I said in my requirements, I hope to
 have it
  there no matter whether a value is selected or not,
 no
  matter whether it is a required field or not.
   
   Again, thanks for help!
   Best,
   David
   
   --- On Wed, 3/17/10, Martin Asenov mase...@velti.com
  wrote:
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
       
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Prevent SessionExpiredPage from opening in a modal window

2010-03-17 Thread Igor Vaynberg
you can add a bit of js to your custom pageexpiredpage, something that
looks like this:

if (window.opener!=null) { window.opener.location=window.location; }

-igor

On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov mase...@velti.com wrote:
 Hello, guys!

 I'm, wondering if I could prevent my sessionExpiredPage from opening in a 
 modal window. In case the user opens a modal window and goes away for a while 
 and in the meantime the session gets expired, I don't want when he comes back 
 and clicks inside the modal window to see the session expired page with a 
 button 'Go to home page in the modal. Afterwards, of course, if he clicks on 
 the link he'll get home page shown inside the modal. I want to prevent this.

 Any hints or ideas?

 Best,
 Martin


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Application#get in WicketSessionFilter

2010-03-17 Thread Igor Vaynberg
whats the use of having an application object if there is no session object?

-igor

On Wed, Mar 17, 2010 at 6:03 AM, Jonas barney...@gmail.com wrote:
 I just reviewed the code Igor for the fix Igor implemented [1], and I
 don't think
 it will be a drop-in replacement for the code in the wiki, since it only 
 exposes
 the application if there's an active HttpSession. The code from the wiki on 
 the
 other hand always exposes the Application.
 In the patch I proposed, I also always exposed the Application. Unfortunately,
 my patch didn't properly handle exceptions (I should have put it all
 into a try finally
 block), I guess that's why Igor didn't use it, but chose to do a
 different implementation.
 I'm not sure why the Application isn't always exposed - I don't think
 it should have
 any side effects, since the Application is already shared between
 multiple threads,
 but I'm not aware of all wicket internals. Maybe Igor can shed some
 light on this issue?

 cheers,
 Jonas


 [1] 
 http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.java?revision=922335view=markup

 On Wed, Mar 17, 2010 at 1:37 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 That sounds great. Could you update the wiki page with the specifics for
 Wicket 1.4.8?

 Regards,
    Erik.


 Op 17-03-10 08:20, Jonas schreef:

 Thanks, Erik, that code would do the trick, too. I've implemented
 a different workaround, though. In the next release of wicket (1.4.8),
 WicketSessionFilter will 'expose' both the session and the application,
 Igor
 already resolved my JIRA Issue [1]. BTW: Thanks to Igor for picking that
 up so quickly!

 cheers,
 Jonas


 [1] https://issues.apache.org/jira/browse/WICKET-2778

 On Tue, Mar 16, 2010 at 9:05 PM, Erik van Oostene.vanoos...@grons.nl
  wrote:


 Hi Jonas,

 Perhaps this is what you need:
 http://cwiki.apache.org/WICKET/springbean-outside-wicket.html

 Regards,
   Erik.


 Jonas wrote:


 Hi all,

 we're using WicketSessionFilter in our product to access
 our custom WebSession, which works fine. Now we've tried
 to also access the org.apache.wicket.Application (e.g. using
 Session#getApplication or Application#get), which doesn't seem
 to work, because the application isn't bound to the ThreadLocal.
 After searching in nabble I found some old threads ([1], [2]) suggesting
 this should actually work fine, but that doesn't seem to be the case.
 Is there any special configuration trick I have to apply to make this
 work, or are those old posts just (no longer) true?
 If anybody could confirm this is actually a bug, I'd create an issue
 in JIRA to have this fixed.

 Regards,
 Jonas

 [1]

 http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786
 [2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469



 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Prevent SessionExpiredPage from opening in a modal window

2010-03-17 Thread Martin Asenov
Thanks , Igor!

I did it that way:


head
script type=text/javascript
function checkIfParentIsModal() {
if (window.opener!=null) { window.opener.location=window.location; }
}
/script
/head

body onload=checkIfParentIsModal()/body

Hopefully that works!

Best,
Martin

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Wednesday, March 17, 2010 5:45 PM
To: users@wicket.apache.org
Subject: Re: Prevent SessionExpiredPage from opening in a modal window

you can add a bit of js to your custom pageexpiredpage, something that
looks like this:

if (window.opener!=null) { window.opener.location=window.location; }

-igor

On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov mase...@velti.com wrote:
 Hello, guys!

 I'm, wondering if I could prevent my sessionExpiredPage from opening in a 
 modal window. In case the user opens a modal window and goes away for a while 
 and in the meantime the session gets expired, I don't want when he comes back 
 and clicks inside the modal window to see the session expired page with a 
 button 'Go to home page in the modal. Afterwards, of course, if he clicks on 
 the link he'll get home page shown inside the modal. I want to prevent this.

 Any hints or ideas?

 Best,
 Martin


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicketstuff versioning

2010-03-17 Thread Jeremy Thomerson
Really, it should match what's at trunk of Wicket, which should be
1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
 But, nobody is really maintaining it any more, so it's a free-for-all.
 That's always been the problem with WicketStuff.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky bgoldow...@cast.orgwrote:

 The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN.
 Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?

 Bng


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: gmap2 opera slow

2010-03-17 Thread Sven Meier

Do you allow moving of markers or use other Ajax notifications?
Once the map is set up in there should be no performance difference 
between wicket-gmap2 and using gmap2 directly on a web page.


Sven

Gatos wrote:

Hello,

I have noticed that in opera gmap2 is more slow that in FF. I have checked
maps.google.com and it seems to be faster.
Does any1 know what could be the cause of the problem?


Thank you

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod DataGrid problem in IE8

2010-03-17 Thread Russell Morrisey
Sorry! It actually does happen in the inmethod grid examples. Marsha found a 
scenario:

Here is the scenario, I used the wicket examples provided online 
(http://wicketstuff.org/grid-examples/data-grid/simple.0;jsessionid=319CDEAD389BDC44FC4D07FE9E0C938B),
 viewed the styles using the IE8 provided developer tools (F12), selected Last 
Name Clark and changed its div tag to include style: text-align:right and the 
last character of 'Clark' is truncated.  After more drilling, it appears that 
each div is the same width of the parent td, but there is a 4px difference 
between the starting position of the td plus the width and the starting 
position of the next width.  So if you aligned the text to the right for home 
phone and cell phone, more and more of the last character will be in-visible.

Also, the column lines between the header and data columns get progressively 
further and further away from each other, probably because of that 4px issue I 
mentioned before.



RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: Russell Morrisey [mailto:russell.morri...@missionse.com]
Sent: Tuesday, March 16, 2010 11:09 AM
To: users@wicket.apache.org
Subject: RE: inmethod DataGrid problem in IE8

Marsha wasn't able to reproduce the problem in the examples. She is working on 
it now. Thanks for the quick response!


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com

-Original Message-
From: Matej Knopp [mailto:matej.kn...@gmail.com]
Sent: Friday, March 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: inmethod DataGrid problem in IE8

If you run grid examples is the problem present?

-Matej

On Fri, Mar 12, 2010 at 9:54 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I am having trouble with the layout of my inmethod DataGrid in wicket.  It 
 appears that the header columns and the data columns are not lining up 
 correctly.  There is a thin outer layer surrounding the individual columns on 
 each row that is pushing the data outside of the viewable area.  This only 
 happens in IE 8, it works fine in lower versions of IE and Firefox.  The 
 summary and header rows work properly but the data rows are the problem.

 Marsha


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



A web site developed with Wicket

2010-03-17 Thread voltron
Hello,

http://www.nofailtime.com/appmonitor is a web application developed with wicket 
framework. It basically checks the web site downtime and notifies the users 
about the failure. 

It uses wicket, yahoo library(YUI), Spring and Cayenne as ORM. I used modal 
windows heavily to implement single page interface. YUI used for feedback 
panels and menu. 

I would be happy if you try the site and give feedback. You can login the site 
with account;
username = demo
password = demo

Thanks,




  

Re: Wicketstuff versioning

2010-03-17 Thread Boris Goldowsky
It sounds like whoever is responsible for wicketstuff needs to make a 
clear choice here.


Is Wicketstuff going to be maintained as a place where lots of useful 
add-ons will live?  If so, it needs someone to take a slightly more 
active role as curator; make sure the releases are done in parallel with 
wicket releases, make sure modules don't get dumped there without at 
least some documentation; and weed out modules that are abandoned, where 
no one volunteers to take on maintenance, or whose function has been 
absorbed into wicket's core.


Alternatively, make it clear that wicketstuff is NOT going to be 
maintained, and people like me who would like to share modules will 
share them in some other way - on Google code, a personal website, or 
whatever.


Either way is ok I think, it just would be useful for those of us who 
are interested in contributing modules to know.


Thanks
Bng


Jeremy Thomerson wrote:

Really, it should match what's at trunk of Wicket, which should be
1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
 But, nobody is really maintaining it any more, so it's a free-for-all.
 That's always been the problem with WicketStuff.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky bgoldow...@cast.orgwrote:

  

The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN.
Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?

Bng


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicketstuff versioning

2010-03-17 Thread Major Péter
I always thought, that Jeremy was the maintainer of WicketStuff. Guess I
was wrong. :)
Sidenote:
Also, I really wanted to write docs for the javaee-inject project, but I
don't have confluence access, and the signup gives:
org.springframework.transaction.UnexpectedRollbackException: Transaction
rolled back because it has been marked as rollback-only

I guess this isn't working since the overspammed confluence event. I
already wrote two e-mails to the dev list, but still no answer, so I'm
confused too about the wicketstuff's future...

Regards,
Peter

2010-03-17 20:25 keltezéssel, Boris Goldowsky írta:
 It sounds like whoever is responsible for wicketstuff needs to make a
 clear choice here.
 
 Is Wicketstuff going to be maintained as a place where lots of useful
 add-ons will live?  If so, it needs someone to take a slightly more
 active role as curator; make sure the releases are done in parallel with
 wicket releases, make sure modules don't get dumped there without at
 least some documentation; and weed out modules that are abandoned, where
 no one volunteers to take on maintenance, or whose function has been
 absorbed into wicket's core.
 
 Alternatively, make it clear that wicketstuff is NOT going to be
 maintained, and people like me who would like to share modules will
 share them in some other way - on Google code, a personal website, or
 whatever.
 
 Either way is ok I think, it just would be useful for those of us who
 are interested in contributing modules to know.
 
 Thanks
 Bng
 
 
 Jeremy Thomerson wrote:
 Really, it should match what's at trunk of Wicket, which should be
 1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
  But, nobody is really maintaining it any more, so it's a free-for-all.
  That's always been the problem with WicketStuff.

 -- 
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky
 bgoldow...@cast.orgwrote:

  
 The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN.
 Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?

 Bng

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



StackOverflowError under serialization leaves pagemap locked

2010-03-17 Thread Nigel Parker
We are a Wicket shop and for one of our clients have been running a
Wicket application successfully for over 2 years. We are now at
version 1.4.0. The traffic on the system is increasing and we are now
seeing an increased frequency of pagemap locking which is beginning to
be a serious problem for the users. By subclassing WebRequestCycle we
have identified that a StackOverflowError under serialization in
RequestCycle.detach() leaves the pagemap locked for the next minute.
If our analysis is correct this is essentially the problem reported as
https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately we
cannot reproduce the problem in our test environment and it occurs
only in about one in every thousand requests with no apparent
consistent pattern about what the user has been doing. Can anybody
suggest an immediate strategy for further investigations? In
particular:

- is there a practical way to find out what is causing the
serialization problem. The stack trace is no help. We do in many cases
have large amounts of data in the session, but doubling the default
stack size leaves the problem frequency unchanged leading us to
suspect a logical error rather the sheer amount of data.

- by overriding RequestCycle.detach() and catching the
StackOverflowError we can get control when the error occurs. Is there
any way we can persuade Wicket to release the pagemap lock? I have
looked at the code and this doesn't look straightforward.

- can we get Wicket itself to suppress the StackOverflowError so that
detach() continues and releases the lock?

Grateful for any suggestions.

Nigel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicketstuff versioning

2010-03-17 Thread Jeremy Thomerson
Comments inline

--
Jeremy Thomerson
http://www.wickettraining.com


On Wed, Mar 17, 2010 at 2:25 PM, Boris Goldowsky bgoldow...@cast.orgwrote:

 It sounds like whoever is responsible for wicketstuff needs to make a clear
 choice here.


The community is responsible for WicketStuff.  This includes you.


 Is Wicketstuff going to be maintained as a place where lots of useful
 add-ons will live?  If so, it needs someone to take a slightly more active
 role as curator; make sure the releases are done in parallel with wicket
 releases, make sure modules don't get dumped there without at least some
 documentation; and weed out modules that are abandoned, where no one
 volunteers to take on maintenance, or whose function has been absorbed into
 wicket's core.


I tried.  I don't have the time it takes.  With the free-for-all access that
is given to it, people consistently commit inconsistent junk that they don't
ever intend on maintaining in there.  Feel free to take over - most of the
reorganization work is already done for you - by me.  You can pick up where
I left off and carry the torture stake as far as you want.

Alternatively, make it clear that wicketstuff is NOT going to be maintained,
 and people like me who would like to share modules will share them in some
 other way - on Google code, a personal website, or whatever.


*Pieces* of WicketStuff will not be maintained.  Unfortunately, that's the
way it's always been, and if you intend on releasing something that really
is going to be maintained, I'd definitely suggest using something else like
Google Code, GitHub, etc...


 Either way is ok I think, it just would be useful for those of us who are
 interested in contributing modules to know.


Search the list - you'll see many similar thoughts to this over the years
related to WicketStuff.

Thanks
 Bng



 Jeremy Thomerson wrote:

 Really, it should match what's at trunk of Wicket, which should be
 1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
  But, nobody is really maintaining it any more, so it's a free-for-all.
  That's always been the problem with WicketStuff.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky bgoldow...@cast.org
 wrote:



 The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN.
 Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?

 Bng


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org








 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicketstuff versioning

2010-03-17 Thread Jeremy Thomerson
See other reply to Boris.  Anyone can pick it up and become the maintainer
of WS.  But it's going to take a group of people who set some rules about it
and then follow them.  The problem with that is that then people *will*
whine because they always wanted WicketStuff to be a no-rules repo.  I would
like to see the wicketstuff-core things that I reorganized last year (and
the year before) to continue to make progress and be released consistently.
 But I don't have the time, and when I asked for help, although there were
offers, no one ever stepped up to the plate.  So, if the community doesn't
care that much, why should I?  I'd rather put my time into things that I can
actually control and make a positive effect with.

--
Jeremy Thomerson
http://www.wickettraining.com



2010/3/17 Major Péter majorpe...@sch.bme.hu

 I always thought, that Jeremy was the maintainer of WicketStuff. Guess I
 was wrong. :)
 Sidenote:
 Also, I really wanted to write docs for the javaee-inject project, but I
 don't have confluence access, and the signup gives:
 org.springframework.transaction.UnexpectedRollbackException: Transaction
 rolled back because it has been marked as rollback-only

 I guess this isn't working since the overspammed confluence event. I
 already wrote two e-mails to the dev list, but still no answer, so I'm
 confused too about the wicketstuff's future...

 Regards,
 Peter

 2010-03-17 20:25 keltezéssel, Boris Goldowsky írta:
  It sounds like whoever is responsible for wicketstuff needs to make a
  clear choice here.
 
  Is Wicketstuff going to be maintained as a place where lots of useful
  add-ons will live?  If so, it needs someone to take a slightly more
  active role as curator; make sure the releases are done in parallel with
  wicket releases, make sure modules don't get dumped there without at
  least some documentation; and weed out modules that are abandoned, where
  no one volunteers to take on maintenance, or whose function has been
  absorbed into wicket's core.
 
  Alternatively, make it clear that wicketstuff is NOT going to be
  maintained, and people like me who would like to share modules will
  share them in some other way - on Google code, a personal website, or
  whatever.
 
  Either way is ok I think, it just would be useful for those of us who
  are interested in contributing modules to know.
 
  Thanks
  Bng
 
 
  Jeremy Thomerson wrote:
  Really, it should match what's at trunk of Wicket, which should be
  1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
   But, nobody is really maintaining it any more, so it's a free-for-all.
   That's always been the problem with WicketStuff.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky
  bgoldow...@cast.orgwrote:
 
 
  The wicketstuff-core is calling itself version 1.4.2 in the HEAD of
 SVN.
  Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?
 
  Bng

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: A web site developed with Wicket

2010-03-17 Thread Jeremy Thomerson
Can you add it to the wiki of sites powered by Wicket?

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 17, 2010 at 1:52 PM, voltron kocam...@yahoo.com wrote:

 Hello,

 http://www.nofailtime.com/appmonitor is a web application developed with
 wicket framework. It basically checks the web site downtime and notifies the
 users about the failure.

 It uses wicket, yahoo library(YUI), Spring and Cayenne as ORM. I used modal
 windows heavily to implement single page interface. YUI used for feedback
 panels and menu.

 I would be happy if you try the site and give feedback. You can login the
 site with account;
 username = demo
 password = demo

 Thanks,







RE: A web site developed with Wicket

2010-03-17 Thread Russell Morrisey
In IE7 (win XP), I get a javascript error on the PGMainScreen after logging in:

Line 10, Char 4265
Invalid callback for subscriber to 'DOMReady'


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057


-Original Message-
From: voltron [mailto:kocam...@yahoo.com]
Sent: Wednesday, March 17, 2010 2:52 PM
To: users@wicket.apache.org
Subject: A web site developed with Wicket

Hello,

http://www.nofailtime.com/appmonitor is a web application developed with wicket 
framework. It basically checks the web site downtime and notifies the users 
about the failure.

It uses wicket, yahoo library(YUI), Spring and Cayenne as ORM. I used modal 
windows heavily to implement single page interface. YUI used for feedback 
panels and menu.

I would be happy if you try the site and give feedback. You can login the site 
with account;
username = demo
password = demo

Thanks,






This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



URL coding strategies

2010-03-17 Thread Vishal Popat
Hi there, I have a question about URL coding strategies

 

I have decided to use IndexedParamUrlCodingStrategy for friendly URL's.

 

I have set PageParameters for this strategy in the following way:

 

PageParameters pageParameters = new PageParameters();

pageParameters.add(0, categoryName);

pageParameters.add(1, productName);

 

I have then created a Bookmarkable link like the following:

Link viewItem = new BookmarkablePageLink(viewItem, ProductInfo.class,
pageParameters);

 

What I really want to do is pass the Product object to the ProductInfo class
without it being visible in the URL. 

I would rather not have to query the database for data object that I already
have.

How can this be achieved?

 

Many thanks in advance.

 

Regards

Vishal



Re: StackOverflowError under serialization leaves pagemap locked

2010-03-17 Thread Johan Compagner
i fixed 2075 so that it should always unlock the pages.

Problem is that you still could get weird errors because that page is not in
a valid state in the session.
So if back buttons/page versions are used it could be that that doesnt work

So what should be fixed is the original problem



On Wed, Mar 17, 2010 at 21:03, Nigel Parker nigel.par...@mazeppa.no wrote:

 We are a Wicket shop and for one of our clients have been running a
 Wicket application successfully for over 2 years. We are now at
 version 1.4.0. The traffic on the system is increasing and we are now
 seeing an increased frequency of pagemap locking which is beginning to
 be a serious problem for the users. By subclassing WebRequestCycle we
 have identified that a StackOverflowError under serialization in
 RequestCycle.detach() leaves the pagemap locked for the next minute.
 If our analysis is correct this is essentially the problem reported as
 https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately we
 cannot reproduce the problem in our test environment and it occurs
 only in about one in every thousand requests with no apparent
 consistent pattern about what the user has been doing. Can anybody
 suggest an immediate strategy for further investigations? In
 particular:

 - is there a practical way to find out what is causing the
 serialization problem. The stack trace is no help. We do in many cases
 have large amounts of data in the session, but doubling the default
 stack size leaves the problem frequency unchanged leading us to
 suspect a logical error rather the sheer amount of data.

 - by overriding RequestCycle.detach() and catching the
 StackOverflowError we can get control when the error occurs. Is there
 any way we can persuade Wicket to release the pagemap lock? I have
 looked at the code and this doesn't look straightforward.

 - can we get Wicket itself to suppress the StackOverflowError so that
 detach() continues and releases the lock?

 Grateful for any suggestions.

 Nigel

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Simple javascript from wicket

2010-03-17 Thread Jeremy Thomerson
Wicket is just java, just html.  Just add the JS to your HTML file.  Don't
add an AjaxEventBehavior in java - because you don't want Ajax, and you
don't need to do it in the java.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 17, 2010 at 4:05 AM, marioosh.net marioosh@gmail.comwrote:

 I have container and buttons element in my template:

div wicket:id=container
span
...
/span
span wicket:id=buttons style=display: none;
a href=# wicket:id=editE/a
a href=# wicket:id=deleteD/a
/span
/div

 and java:
container.add(new AjaxEventBehavior(onmouseover) {
protected void onEvent(AjaxRequestTarget target) {
buttons.add(new
 SimpleAttributeModifier(style, display: ;));
target.addComponent(buttons);
}
});

 On mouseover container i show buttons, but i think it sends request to
 server in that way.
 Is possible to change style in js only (but programming in wicket),
 not sending request to server ?
 How in wicket do some js work, but not interacting with server ?

 --
 Greetings,
 marioosh

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: A web site developed with Wicket

2010-03-17 Thread Daniel Toffetti
voltron kocamane at yahoo.com writes:
 Hello,
 
 http://www.nofailtime.com/appmonitor is a web application
 developed with wicket framework.
 
 .
 
 I would be happy if you try the site and give feedback. You
 can login the site with account;
 username = demo
 password = demo
 
 Thanks,

It looks great, I like specially the menu. Some panels (Login, Subscription
Update) seem to be somewhat to the right of the screen, it would be better if
they were centered.
And I get a 1 centimeter wide vertical padding both to the left and to the
right, don't know if this is intentional, it doesn't look good but perhaps it's
just me.
Could not crash it yet, tested with Firefox 3.6 / Windows XP on a 17 CRT
(non-wide format).

Cheers,

Daniel



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Google Annotated Time Line

2010-03-17 Thread Josh Chappelle
Hi,

 

I'm trying to get the google annotated time line to work in a wicket page.
When I created a page with just the html and javascript it works. However,
when I try to create a behavior that renders the javascript to the head it
doesn't work. Here is a link to the google html and javascript:

 

http://code.google.com/apis/ajax/playground/?type=visualization#annotated_ti
me_line

 

Here is my behavior class. I'm adding the behavior to a div and I just have
the ids hard coded for now:

 

public class AnnotatedTimeLineBehavior extends AbstractBehavior

{

 

@Override

public void renderHead(IHeaderResponse response)

{

 
response.renderJavascriptReference(http://www.google.com/jsapi;);

response.renderOnLoadJavascript(makeJavascript());

}

 

private String makeJavascript()

{

StringBuilder result = new StringBuilder();

result.append(google.load('visualization', '1', {packages:
['annotatedtimeline']}););

result.append(\r\n);

result.append(function drawVisualization() {);

result.append(\r\n);

result.append(var data = new
google.visualization.DataTable(););

result.append(\r\n);

result.append(data.addColumn('date', 'Date'););

result.append(\r\n);

result.append(data.addColumn('number', 'Sold Pencils'););

result.append(\r\n);

result.append(data.addColumn('string', 'title1'););

result.append(\r\n);

result.append(data.addColumn('string', 'text1'););

result.append(\r\n);

result.append(data.addColumn('number', 'Sold Pens'););

result.append(\r\n);

result.append(data.addColumn('string', 'title2'););

result.append(\r\n);

result.append(data.addColumn('string', 'text2'););

result.append(\r\n);

result.append(data.addRows(6););

result.append(\r\n);

result.append(data.setValue(0, 0, new Date(2008, 1 ,1)););

result.append(\r\n);

result.append(data.setValue(0, 1, 3););

result.append(\r\n);

result.append(data.setValue(0, 4, 40645););

result.append(\r\n);

result.append(data.setValue(1, 0, new Date(2008, 1 ,2)););

result.append(\r\n);

result.append(data.setValue(1, 1, 14045););

result.append(\r\n);

result.append(data.setValue(1, 4, 20374););

result.append(\r\n);

result.append(data.setValue(2, 0, new Date(2008, 1 ,3)););

result.append(\r\n);

result.append(data.setValue(2, 1, 55022););

result.append(\r\n);

result.append(data.setValue(2, 4, 50766););

result.append(\r\n);

result.append(data.setValue(3, 0, new Date(2008, 1 ,4)););

result.append(\r\n);

result.append(data.setValue(3, 1, 75284););

result.append(\r\n);

result.append(data.setValue(3, 4, 14334););

result.append(\r\n);

result.append(data.setValue(3, 5, 'Out of Stock'););

result.append(\r\n);

result.append(data.setValue(3, 6, 'Ran out of stock on pens
at 4pm'););

result.append(\r\n);

result.append(data.setValue(4, 0, new Date(2008, 1 ,5)););

result.append(\r\n);

result.append(data.setValue(4, 1, 41476););

result.append(\r\n);

result.append(data.setValue(4, 2, 'Bought Pens'););

result.append(\r\n);

result.append(data.setValue(4, 3, 'Bought 200k pens'););

result.append(\r\n);

result.append(data.setValue(4, 4, 66467););

result.append(\r\n);

result.append(data.setValue(5, 0, new Date(2008, 1 ,6)););

result.append(\r\n);

result.append(data.setValue(5, 1, 33322););

result.append(\r\n);

result.append(data.setValue(5, 4, 39463););

result.append(\r\n);

  

result.append(var annotatedtimeline = new
google.visualization.AnnotatedTimeLine(document.getElementById('visualizatio
n')););

result.append(\r\n);

result.append(annotatedtimeline.draw(data,
{'displayAnnotations': true}););

result.append(});

result.append(\r\n);

 
result.append(google.setOnLoadCallback(drawVisualization););

result.append(\r\n);


Re: A web site developed with Wicket

2010-03-17 Thread Fernando Wermus
It works great and look fine in safari

On Wed, Mar 17, 2010 at 9:46 PM, Daniel Toffetti dto...@yahoo.com.arwrote:

 voltron kocamane at yahoo.com writes:
  Hello,
 
  http://www.nofailtime.com/appmonitor is a web application
  developed with wicket framework.
 
  .
 
  I would be happy if you try the site and give feedback. You
  can login the site with account;
  username = demo
  password = demo
 
  Thanks,

 It looks great, I like specially the menu. Some panels (Login,
 Subscription
 Update) seem to be somewhat to the right of the screen, it would be better
 if
 they were centered.
And I get a 1 centimeter wide vertical padding both to the left and to
 the
 right, don't know if this is intentional, it doesn't look good but perhaps
 it's
 just me.
Could not crash it yet, tested with Firefox 3.6 / Windows XP on a 17
 CRT
 (non-wide format).

 Cheers,

 Daniel



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus