Re: Wicket logo and badges anywhere?

2007-10-23 Thread Gerolf Seitz
well yeah, that would probably be too much.
i'd still wear it on campus though to spread the word ;)

  Gerolf

On 10/23/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 10/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> > i was actually thinking about it too.
> > imagine you can spot wicket users on conferences right away cause
> they're
> > wearing
> > orange t-shirts with a nice "W" on it ;)
>
> I'd rather they'd be recognized by not being obvious fan boys (or
> girls) of a particular framework. :-)
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Chris Lintz

Ok.  Its a good thing.. I didnt know it was the default setting.  I guess i
should thank you because it exposed a classic issue seen when having SSL
accelerators proxying requests to port 80 .  The redirect was redirecting
off https.  I have fixed this by setting correct headers at the accelerator
box.

Anyways, I don't need to change to ONE_PASS_RENDERER but for my knowledge
going forward,  it appears this cannot be set per request?



Eelco Hillenius wrote:
> 
> On 10/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> yep, this is called a redirect-after-post pattern - i suggest you look
>> it up. it is the preferred way of building webapps and wicket gives
>> you it for free. so actually this is a Good Thing (tm).
> 
> Yup. Read the docs on IRequestCycleSettings#RenderStrategy. The
> default is REDIRECT_TO_BUFFER. If you don't like this behavior, you
> can set it to ONE_PASS_RENDER.
> 
> Eelco
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Button-component-bug---all-uses-of-a-Button-cause-a-302-redirect-tf4681842.html#a13379870
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internationalization and Component orientation

2007-10-23 Thread Suad AlShamsi

Its working thank you so much.

Jeremy Thomerson wrote:

I haven't used the mechanism, but I believe that with all of your files
(html / properties / etc), you should just be able to add the locale
abbreviation to the end of the file to override the default content.

For instance, if you can re-arrange the layout of your pages by just
overriding CSS, you might be able to just override your master CSS file

global.css (default css)
global_ar.css (Arabic css)

If you need to override actual HTML, you should be able to do the same:

YourPage.html
YourPage_ar.html

Hope this helps

Jeremy Thomerson

On 10/23/07, alshamsi <[EMAIL PROTECTED]> wrote:
  

Hi All,

   I am developing an application that supports English and Arabic.
Therefore based on the locale I need to shift components from right to
left
and vice versa. Does wicket provide any utility to facilitate that? Does
anybody know any other framework that can be used on top of wicket to do
so?

Regards,
Suad
--
View this message in context:
http://www.nabble.com/Internationalization-and-Component-orientation-tf4679985.html#a13372442
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  




Re: Quick follow-up

2007-10-23 Thread JohannesK

Thanks for both replies. 

Oliver: setOutputMarkupPlaceholderTag() calls setOutputMarkupId().

Martijn: That explains a lot :)


Oliver Lieven wrote:
> 
> Hi,
> 
> what about using products.setOutputMarkupId(true) ? 
> 
> regards,
> Oliver
> 
> 
> Martijn Dashorst wrote:
>> 
>> Is the products a repeater (ListView, RepeatingView, DataView)? Then
>> it doesn't have its own markup (see for instance
>> http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html).
>> 
>> Martijn
>> 
>> On 10/23/07, JohannesK <[EMAIL PROTECTED]> wrote:
>>>
>>> I managed to solve that problem, but i still cannot get the markup id to
>>> show
>>> up in my div.
>>>
>>> These two calls:
>>> products.setMarkupId("productlist"+item.getIndex());
>>> products.setOutputMarkupPlaceholderTag(true);
>>>
>>> don't seem to do anything. I can change the class of the div just fine
>>> with
>>> a SimpleAttributeModifier, but for the div id i can't get it to work.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13364719
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> 
>> 
>> -- 
>> Buy Wicket in Action: http://manning.com/dashorst
>> Apache Wicket 1.3.0-beta4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13379582
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Must wicket modify the attribute name?

2007-10-23 Thread kent lai
It's ok, just wanted to verify if this was the current usage of the  
name. Always easier to have a workaround than to ask for some big  
change which probably does not benefit too many people ;)


(not using id as js validator works with name, but it can also  
optionally work with embedded css class metadata. Going to use that  
approach now)


Thanks!

On 24 Oct 2007, at 12:43 PM, Eelco Hillenius wrote:


I am trying to integrate my wicket application to use jquery
validator plugin, and specifying the rules in a js file.
The js file will need to identify the input by the name of  
the input.
It worked fine in plain html markup, but when I ran it in  
wicket I

was unable to validate. Apparently wicket modifies the name of the
input.


It does this so that it can find the form submitted values back. It
might be possible to 'fix' this but that is possibly hairy. An easy
workaround is to use the same ids for your form components as the
names you want to use.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Eelco Hillenius
On 10/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> yep, this is called a redirect-after-post pattern - i suggest you look
> it up. it is the preferred way of building webapps and wicket gives
> you it for free. so actually this is a Good Thing (tm).

Yup. Read the docs on IRequestCycleSettings#RenderStrategy. The
default is REDIRECT_TO_BUFFER. If you don't like this behavior, you
can set it to ONE_PASS_RENDER.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Igor Vaynberg
yep, this is called a redirect-after-post pattern - i suggest you look
it up. it is the preferred way of building webapps and wicket gives
you it for free. so actually this is a Good Thing (tm).

-igor


On 10/23/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
>
> Hey all,
> We are quite puzzled why this is happening.  Every use of a Button onSubmit
> causes a 302 redirect no matter if it posts a form or does a get.  I have
> simplified this down to a simple page with a Button and guaranteed there are
> no Apache redirects or .htaccess files in play.  I also ensured the default
> WebRequestCodingStrategy is used and the WebApplications
> newRequestCycleProcessor() is not overloaded.
>
> We are running Wicket 3 Beta4 inside Tomcat 5.5 (although I believe Beta3
> has the same issue) .  This only occurs with Buttons.  Ajax posts and other
> Link components make it through just fine.  A Button as simple as this
> causes the redirect:
>
> Button testBtn1 = new Button("testBtn1")
> {
>   @Override
>public void onSubmit()
>   {
>  info("No response page ");
>   }
> };
>
> Below is the proof a redirect is sent (with ourdomain.com in replace of our
> real domain for privacy).
>
>
> POST /?wicket:interface=:3:testForm::IFormSubmitListener:: HTTP/1.1
>
> Host: ourdomain.com
>
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4)
> Gecko/20070515 Firefox/2.0.0.4
>
> Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>
> Accept-Language: en-us,en;q=0.5
>
> Accept-Encoding: gzip,deflate
>
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>
> Keep-Alive: 300
>
> Connection: keep-alive
>
> Referer: http://ourdomain.com/?wicket:interface=:3
>
> Cookie: JSESSIONID=2888082B1246E97B83C30DEC73479AE4.node1
>
> Content-Type: application/x-www-form-urlencoded
>
> Content-Length: 34
>
> testForm7_hf_0=&testBtn1=Info+Only
>
> HTTP/1.x 302 Moved Temporarily
>
> Date: Wed, 24 Oct 2007 03:23:46 GMT
>
> Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 mod_jk/1.2.22
>
> X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA
> date=200707131605)/Tomcat-5.5
>
> Location: http://ourdomain.com/?wicket:interface=:3
>
> Content-Length: 0
>
> Keep-Alive: timeout=5, max=100
>
> Connection: Keep-Alive
>
> Content-Type: text/plain
>
>
>
> Any ideas why this is happening?
>
> Thanks
>
>
> chris
>
>
> --
> View this message in context: 
> http://www.nabble.com/Button-component-bug---all-uses-of-a-Button-cause-a-302-redirect-tf4681842.html#a13378576
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Must wicket modify the attribute name?

2007-10-23 Thread Eelco Hillenius
> I am trying to integrate my wicket application to use jquery
> validator plugin, and specifying the rules in a js file.
> The js file will need to identify the input by the name of the input.
> It worked fine in plain html markup, but when I ran it in wicket I
> was unable to validate. Apparently wicket modifies the name of the
> input.

It does this so that it can find the form submitted values back. It
might be possible to 'fix' this but that is possibly hairy. An easy
workaround is to use the same ids for your form components as the
names you want to use.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Must wicket modify the attribute name?

2007-10-23 Thread kent lai

Hi,
	I am trying to integrate my wicket application to use jquery  
validator plugin, and specifying the rules in a js file.

The js file will need to identify the input by the name of the input.
	It worked fine in plain html markup, but when I ran it in wicket I  
was unable to validate. Apparently wicket modifies the name of the  
input.


	I believe they had to do this such that they can properly serialize/ 
deserialize between the input and the wicket TextField/etc, but I  
wanted to be sure. Is this how wicket handle the serialization/ 
deserialization of the bound input values with the wicket objects? Or  
can I ask wicket not to change the name?


Thanks

Kent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Chris Lintz

Hey all,
We are quite puzzled why this is happening.  Every use of a Button onSubmit
causes a 302 redirect no matter if it posts a form or does a get.  I have
simplified this down to a simple page with a Button and guaranteed there are
no Apache redirects or .htaccess files in play.  I also ensured the default
WebRequestCodingStrategy is used and the WebApplications
newRequestCycleProcessor() is not overloaded.

We are running Wicket 3 Beta4 inside Tomcat 5.5 (although I believe Beta3 
has the same issue) .  This only occurs with Buttons.  Ajax posts and other
Link components make it through just fine.  A Button as simple as this
causes the redirect:

Button testBtn1 = new Button("testBtn1")
{
  @Override
   public void onSubmit()
  {
 info("No response page ");
  }
};
 
Below is the proof a redirect is sent (with ourdomain.com in replace of our
real domain for privacy).


POST /?wicket:interface=:3:testForm::IFormSubmitListener:: HTTP/1.1

Host: ourdomain.com

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4)
Gecko/20070515 Firefox/2.0.0.4

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Referer: http://ourdomain.com/?wicket:interface=:3

Cookie: JSESSIONID=2888082B1246E97B83C30DEC73479AE4.node1

Content-Type: application/x-www-form-urlencoded

Content-Length: 34

testForm7_hf_0=&testBtn1=Info+Only

HTTP/1.x 302 Moved Temporarily

Date: Wed, 24 Oct 2007 03:23:46 GMT

Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 mod_jk/1.2.22

X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA
date=200707131605)/Tomcat-5.5

Location: http://ourdomain.com/?wicket:interface=:3

Content-Length: 0

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: text/plain



Any ideas why this is happening?

Thanks


chris


-- 
View this message in context: 
http://www.nabble.com/Button-component-bug---all-uses-of-a-Button-cause-a-302-redirect-tf4681842.html#a13378576
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cache Panel

2007-10-23 Thread Igor Vaynberg
use any cache you want to cache it, and stick the contents into a label

-igor


On 10/23/07, Joe Toth <[EMAIL PROTECTED]> wrote:
> There are some operations that are kind of complicated, rather than dig
> into those operations and try to cache things, it would be A LOT easier
> to just stick a cache in front of it all.
>
>
>
> On Tue, 2007-10-23 at 21:01 -0500, Jeremy Thomerson wrote:
> > The first thing to ask yourself would be if you really need to do that.
> > HTML generation is extremely fast, and generally does not need to be
> > cached.  If page generation is taking a long time, it is likely that DB
> > operations or external service operations are what needs to be cached.
> >
> > Was there a particular reason you had in mind for caching the HTML?
> >
> > Jeremy Thomerson
> >
> > On 10/23/07, Joe Toth <[EMAIL PROTECTED]> wrote:
> > >
> > > I have a bunch of Panels where the generated HTML can be cached for a
> > > period of time.
> > >
> > > What's the best way to go about doing something like this?
> > >
> > > Thanks!
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cache Panel

2007-10-23 Thread Joe Toth
There are some operations that are kind of complicated, rather than dig
into those operations and try to cache things, it would be A LOT easier
to just stick a cache in front of it all.



On Tue, 2007-10-23 at 21:01 -0500, Jeremy Thomerson wrote:
> The first thing to ask yourself would be if you really need to do that.
> HTML generation is extremely fast, and generally does not need to be
> cached.  If page generation is taking a long time, it is likely that DB
> operations or external service operations are what needs to be cached.
> 
> Was there a particular reason you had in mind for caching the HTML?
> 
> Jeremy Thomerson
> 
> On 10/23/07, Joe Toth <[EMAIL PROTECTED]> wrote:
> >
> > I have a bunch of Panels where the generated HTML can be cached for a
> > period of time.
> >
> > What's the best way to go about doing something like this?
> >
> > Thanks!
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cache Panel

2007-10-23 Thread Jeremy Thomerson
The first thing to ask yourself would be if you really need to do that.
HTML generation is extremely fast, and generally does not need to be
cached.  If page generation is taking a long time, it is likely that DB
operations or external service operations are what needs to be cached.

Was there a particular reason you had in mind for caching the HTML?

Jeremy Thomerson

On 10/23/07, Joe Toth <[EMAIL PROTECTED]> wrote:
>
> I have a bunch of Panels where the generated HTML can be cached for a
> period of time.
>
> What's the best way to go about doing something like this?
>
> Thanks!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-23 Thread Francisco Diaz Trepat - gmail
Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.

If everything else fails I'll provide a QuickStart.

Thanks,
f(t)

On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Can you provide a quickstart?
>
> -Matej
>
> On 10/23/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi. I'm going to try to explain the best that I can and without posting
> code
> > at first the issue that is happening.
> >
> > I have the following panels A and C. A has two instances of B nested
> inside
> > of it. C is empty:
> >
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > What happens is that on another Panel that represent the Page content,
> lets
> > call it ContentPanel I need to toggle between panels A and C with the
> click
> > of an Ajax Link.
> >
> > The first state is with panel C that it is empty (actually with lots of
> > HiddenFields, but empty visually). On click I need to Show the A panel
> that
> > has viewable content. Finally on another click I need to go back to the
> > original state of C panel.
> >
> > So far so good. The issue is as follows:
> >
> > The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6
> and 7
> > it is not an issue as everything works fine).
> >
> > What happens is that I click on the link, and panel A shows perfectly.
> But
> > when I click again to put the C panel back, the A panel gets Partially
> > removed, that is panel A's first panel B instance B1 gets removed, but
> B2 is
> > not removed and it is still visible, plus I get the C panel, as C panel
> > doesn't have viewable content it doesn't add to the visual problem.
> *Ej*:
> >
> > [
> >
> > ==PANEL-A==
> >
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > Now If I click again, I get Panel A with "2 instances of B2" as panel B2
> was
> > not removed.
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > So and so forth every click and click, I get panel A partially removed
> and
> > when added again I have another instance of B2 as it is never removed.
> >
> >
> >
> > Any Ideas?
> >
> > thanks,
> >
> > f(t)
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Internationalization and Component orientation

2007-10-23 Thread Jeremy Thomerson
I haven't used the mechanism, but I believe that with all of your files
(html / properties / etc), you should just be able to add the locale
abbreviation to the end of the file to override the default content.

For instance, if you can re-arrange the layout of your pages by just
overriding CSS, you might be able to just override your master CSS file

global.css (default css)
global_ar.css (Arabic css)

If you need to override actual HTML, you should be able to do the same:

YourPage.html
YourPage_ar.html

Hope this helps

Jeremy Thomerson

On 10/23/07, alshamsi <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
>I am developing an application that supports English and Arabic.
> Therefore based on the locale I need to shift components from right to
> left
> and vice versa. Does wicket provide any utility to facilitate that? Does
> anybody know any other framework that can be used on top of wicket to do
> so?
>
> Regards,
> Suad
> --
> View this message in context:
> http://www.nabble.com/Internationalization-and-Component-orientation-tf4679985.html#a13372442
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: retrieving page from ModalWindow's setPageCreator(ModalWindow.PageCreator)

2007-10-23 Thread Matej Knopp
Modal window doesn't keep the reference to the page. What prevents you
from keeping the reference inside the page creator instance if you
need to?

-Matej

On 10/23/07, Kirk Israel <[EMAIL PROTECTED]> wrote:
> I looked at the JavaDoc and inspected the class, but couldn't find a
> clear way of getting the page I'm generating in
> ModalWindow.setPageCreator's createPage() out of the ModalWindow.
>
> (My situation is a little complex: I want a single "upload image"
> ModalWindow (and corresponding page embedded in that, I think it has
> to be a page so that I can use the Upload tag properly) for the entire
> parent page. And then components of the parent page .show() the
> ModalWindow after passing themselves into its embedded page, so that
> the embedded page can call them back with the data the user uploaded.)
>
> It's not a blocking issue, because createPage() is being defined
> inside the parentPage, and I can set a reference to the new page, but
> it means the parentPage has to expose two seperate elements: the
> ModalWindow itself, so it can be show()'d, and the embedded Page, so
> the Page's callback function can be set.
>
> So, is there an obvious way of doing this that I missed? I see there's
> a getPage() function but that seems to be the basic Component
> implementation of it.
>
> Thanks!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing PageMap ?

2007-10-23 Thread mfs

Well than may be i am misundertanding it...the getUser method than can be
defined anywhere (i thought you were suggested in some specific class i.e.
MyCustomRequestCycle which we would be overriding and hence onBeginRequst
and onEnd)..and since we were talking in the context where we want to load
the user-object on every-request thats why i was saying that putting in the
onBeginRequest would be the way to go.






Johan Compagner wrote:
> 
> no why would that be onBeginRequest? calling getUser would be when you
> need
> in somewhere in your code
> 
> 
> 
> On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
>>
>>
>> Makes sense...and calling the getUser method when you need it, and that
>> would
>> onBeginRequest ?
>>
>> Farhan.
>>
>>
>>
>> Johan Compagner wrote:
>> >
>> > No it has Nothing to do with how wicket caches or something
>> > Its just how hibernate tracks its own session objects
>> > And an object that you load in one request with a hibernate session
>> object
>> > if you try to reuse that object in another one then that object of the
>> > last
>> > time is not attached to the hibernate session of this request
>> > So you get a StaleObjectException or something like that don't know
>> > exactly
>> >
>> > And what does the wicket Session impl have to do with how YOU use
>> database
>> > object in it
>> > Its just an object in the http session. We don't touch or do anything
>> with
>> > the objects you put into it.
>> >
>> > And in this example it has nothing to do with wickets lazy lookup.  (by
>> > using detachable models like LoadableDetachableModel)
>> > because if you want a user that you want pretty much all your request
>> then
>> > store the userid in the wicket session
>> > and then in your custom request cycle do this:
>> > MyRequestCycle
>> > {
>> > User user = null;
>> > getUser()
>> > {
>> >if (user == null)
>> > {
>> >   user = dao.loadById(getSession().getUserId());
>> > }
>> >return user;
>> > }
>> > }
>> >
>> >
>> >
>> > On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> So basically what you are saying is that caching hibernate object in
>> >> wicket's
>> >> session can cause issues with hibernate when using the cached
>> >> object...either in the same request or any subsequent request..right ?
>> I
>> >> wonder if that has anything to do with wickets session impl, its just
>> >> would
>> >> be true for any web-framework ?
>> >>
>> >> Also can you point me to an article on wicket's lazy lookup ? I still
>> >> dont
>> >> completely follow you..
>> >>
>> >>
>> >>
>> >> Johan Compagner wrote:
>> >> >
>> >> >>
>> >> >>
>> >> >> sorry but I dont completely get your point on hibernate objects not
>> >> >> attached
>> >> >> to the current session...can you please elaborate..I mean given the
>> >> >> context
>> >> >> in discussion if lets say i stored hibernate objects in the current
>> >> >> session,
>> >> >> would that cause any issues..is that what you mean OR ??
>> >> >
>> >> >
>> >> > Sorry current Hibernate sessions. If you want to use your Wicket
>> >> session
>> >> > cached object
>> >> > again in hibernate in that request then you get hibernate errors.
>> >> (because
>> >> > it is not attached to the current hibernate session)
>> >> >
>> >> >
>> >> >> YOU mean using the lazy mechanism at the hibernate layer ?
>> >> >
>> >> >
>> >> >
>> >> > no the lazy lookup is in wicket.
>> >> > your request cycle has an method getUser() and only when you call
>> that
>> >> you
>> >> > load it in
>> >> > Then it can be cached by hibernate in the second level cache of
>> >> hibernate.
>> >> >
>> >> > johan
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13354462
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13370686
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13375581
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: javascript settimeout on ajaxeventtarget

2007-10-23 Thread Matej Knopp
What you want to accomplish needs a little bit more of javascript,
it's not a simple timeout. Problem is that you need to make sure that
after the timeout the mouse is still over the element. Anyway, you can
use AjaxEventBehavior.getAjaxCallDecorator() to return your own
decorater which decorates the wicket javascript to be invoked only
when you hold the mouse over the specified element for certain period
of time (the actual implementation is upon you :) )

-Matej

On 10/23/07, James Law <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a screen that shows a list (using wicket datagrid).
> Each row has an href/link that is opening the wicket modal window.
>
> It works well, but the users wanted ability to mouseover (instead of
> having to click)
> to automatically open the window (without clicking the link).
>
> I accomplished this (thanks wicket!) by doing:
>
>   AjaxEventBehavior mouseover = new AjaxEventBehavior("onmouseover"){
>
>
> Now, the problem arises: the users want to introduce a delay before
> handling the mouseover. Using javascript setTimeout seems like the way
> to handle this, but what is the correct strategy for getting wicket to
> emit this javascript?
>
> eg: setTimeout('wicketfunction', 1000)
> or see here for javascript overview:
> http://www.w3schools.com/js/js_timing.asp
>
> So my questions are:
>
> 1. Does wicket already have me covered and I can't find it?
>
> 2. If no,  Should I do something similar to what I see in the
> Wicket.Throttler code?
>
> 3. Any other ideas on best extension approach. (override
> AbstractDefaultAjaxBehavior?)
>
> TIA
> James
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-23 Thread Matej Knopp
Can you provide a quickstart?

-Matej

On 10/23/07, Francisco Diaz Trepat - gmail
<[EMAIL PROTECTED]> wrote:
> Hi. I'm going to try to explain the best that I can and without posting code
> at first the issue that is happening.
>
> I have the following panels A and C. A has two instances of B nested inside
> of it. C is empty:
>
> [
>
> ==PANEL-A==
>
> [
>
> ==PANEL-B1==
>
> ]
>
> [
>
> ==PANEL-B2==
>
> ]
>
> ]
>
>
> [
> ==PANEL-C==
> ]
>
> What happens is that on another Panel that represent the Page content, lets
> call it ContentPanel I need to toggle between panels A and C with the click
> of an Ajax Link.
>
> The first state is with panel C that it is empty (actually with lots of
> HiddenFields, but empty visually). On click I need to Show the A panel that
> has viewable content. Finally on another click I need to go back to the
> original state of C panel.
>
> So far so good. The issue is as follows:
>
> The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6 and 7
> it is not an issue as everything works fine).
>
> What happens is that I click on the link, and panel A shows perfectly. But
> when I click again to put the C panel back, the A panel gets Partially
> removed, that is panel A's first panel B instance B1 gets removed, but B2 is
> not removed and it is still visible, plus I get the C panel, as C panel
> doesn't have viewable content it doesn't add to the visual problem. *Ej*:
>
> [
>
> ==PANEL-A==
>
>
> [
>
> ==PANEL-B2==
>
> ]
>
> ]
>
> [
> ==PANEL-C==
> ]
>
> Now If I click again, I get Panel A with "2 instances of B2" as panel B2 was
> not removed.
> [
>
> ==PANEL-A==
>
> [
>
> ==PANEL-B1==
>
> ]
>
> [
>
> ==PANEL-B2==
>
> ]
>
> [
>
> ==PANEL-B2==
>
> ]
>
> ]
>
> So and so forth every click and click, I get panel A partially removed and
> when added again I have another instance of B2 as it is never removed.
>
>
>
> Any Ideas?
>
> thanks,
>
> f(t)
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: updating components on Page from ModalWindow's internal Page's components

2007-10-23 Thread Matej Knopp
Problem is that AjaxRequestTarget only applies to one page. If you
want to update the outer page (assuming that you have another page
inside modal window, not a panel), the only way to do it is from
within WindowClosedCallback registered to modal window. So you have to
mark somehow dirty components on parent page and then update those
when modal window closes.

-Matej

On 10/23/07, Kirk Israel <[EMAIL PROTECTED]> wrote:
> So I spoke too soon about this working out... I think the core problem
> is kind of simple:
> How can a component of a page inside a ModalWindow update components
> on the page that holds the Modal Window?
>
> More Specifically:
> I have an "EditCreativePage" that creates an instance of
> "UploadMediaPanelPage", then creates a ModalWindow with a createPage()
> that gets the instance of the  "UploadMediaPanelPage".
> "EditCreativePage" has a "MediaPanel" that has a link that sets a
> callback inside of "UploadMediaPanelPage" and calls the
> ModalWindow.show()
>
> "UploadMediaPanelPage" has an upload Form, whose onSubmit seems to do
> a fine job of parsing data of the uploaded image, and shows a preview
> panel w/ the image etc. "UploadMediaPanelPage" also has its own
> AjaxLinks for "Ok" and "Cancel" - when I pass the AjaxRequestTarget
> the onClick for OK gets back to the "MediaPanel", and it tries to
> update itself and its embedded ImageComponent.
>
> Now, when I forget to call MediaPanel.setOutputMarkupId(true), the
> ModalWindow shows the exception
>
>  java.lang.IllegalArgumentException: cannot update component that does
> not have setOutputMarkupId property set to true.
>
> when I do call MediaPanel.setOutputMarkupId(true), there's no
> exception, but the Ajax Debug window *inside the ModalWindow* shows
> something like
>
> ERROR: Component with id [[mediaimage40]] a was not found while trying
> to perform markup update. Make sure you called
> component.setOutputMarkupId(true) on the component whose markup you
> are trying to update.
>
> and nothing shows up in th Ajax Debug of "EditCreativePage", which is
> probably the problem...
>
> Is there a work around for this? Either direct, or do I need to
> somehow override the ModalWindow setWindowClosedCallback ? But in that
> case, what do I use for an AjaxRequestTarget ?
>
> Thanks for any help...
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing PageMap ?

2007-10-23 Thread Johan Compagner
no why would that be onBeginRequest? calling getUser would be when you need
in somewhere in your code



On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
>
>
> Makes sense...and calling the getUser method when you need it, and that
> would
> onBeginRequest ?
>
> Farhan.
>
>
>
> Johan Compagner wrote:
> >
> > No it has Nothing to do with how wicket caches or something
> > Its just how hibernate tracks its own session objects
> > And an object that you load in one request with a hibernate session
> object
> > if you try to reuse that object in another one then that object of the
> > last
> > time is not attached to the hibernate session of this request
> > So you get a StaleObjectException or something like that don't know
> > exactly
> >
> > And what does the wicket Session impl have to do with how YOU use
> database
> > object in it
> > Its just an object in the http session. We don't touch or do anything
> with
> > the objects you put into it.
> >
> > And in this example it has nothing to do with wickets lazy lookup.  (by
> > using detachable models like LoadableDetachableModel)
> > because if you want a user that you want pretty much all your request
> then
> > store the userid in the wicket session
> > and then in your custom request cycle do this:
> > MyRequestCycle
> > {
> > User user = null;
> > getUser()
> > {
> >if (user == null)
> > {
> >   user = dao.loadById(getSession().getUserId());
> > }
> >return user;
> > }
> > }
> >
> >
> >
> > On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> So basically what you are saying is that caching hibernate object in
> >> wicket's
> >> session can cause issues with hibernate when using the cached
> >> object...either in the same request or any subsequent request..right ?
> I
> >> wonder if that has anything to do with wickets session impl, its just
> >> would
> >> be true for any web-framework ?
> >>
> >> Also can you point me to an article on wicket's lazy lookup ? I still
> >> dont
> >> completely follow you..
> >>
> >>
> >>
> >> Johan Compagner wrote:
> >> >
> >> >>
> >> >>
> >> >> sorry but I dont completely get your point on hibernate objects not
> >> >> attached
> >> >> to the current session...can you please elaborate..I mean given the
> >> >> context
> >> >> in discussion if lets say i stored hibernate objects in the current
> >> >> session,
> >> >> would that cause any issues..is that what you mean OR ??
> >> >
> >> >
> >> > Sorry current Hibernate sessions. If you want to use your Wicket
> >> session
> >> > cached object
> >> > again in hibernate in that request then you get hibernate errors.
> >> (because
> >> > it is not attached to the current hibernate session)
> >> >
> >> >
> >> >> YOU mean using the lazy mechanism at the hibernate layer ?
> >> >
> >> >
> >> >
> >> > no the lazy lookup is in wicket.
> >> > your request cycle has an method getUser() and only when you call
> that
> >> you
> >> > load it in
> >> > Then it can be cached by hibernate in the second level cache of
> >> hibernate.
> >> >
> >> > johan
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13354462
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13370686
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Cache Panel

2007-10-23 Thread Joe Toth
I have a bunch of Panels where the generated HTML can be cached for a
period of time. 

What's the best way to go about doing something like this?

Thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



javascript settimeout on ajaxeventtarget

2007-10-23 Thread James Law

Hi,

I have a screen that shows a list (using wicket datagrid).
Each row has an href/link that is opening the wicket modal window.

It works well, but the users wanted ability to mouseover (instead of 
having to click)

to automatically open the window (without clicking the link).

I accomplished this (thanks wicket!) by doing:

 AjaxEventBehavior mouseover = new AjaxEventBehavior("onmouseover"){


Now, the problem arises: the users want to introduce a delay before 
handling the mouseover. Using javascript setTimeout seems like the way 
to handle this, but what is the correct strategy for getting wicket to 
emit this javascript?


eg: setTimeout('wicketfunction', 1000)
or see here for javascript overview:
http://www.w3schools.com/js/js_timing.asp

So my questions are:

1. Does wicket already have me covered and I can't find it?

2. If no,  Should I do something similar to what I see in the 
Wicket.Throttler code?


3. Any other ideas on best extension approach. (override 
AbstractDefaultAjaxBehavior?)


TIA
James







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reporting Tool and Portal Integration

2007-10-23 Thread Philip A. Chapman
I integrated it by using a servlet, but I believe that there is a
wicket-stuff project that uses DynamicResource objects.  Check
wicket-stuff.


On Tue, 2007-10-23 at 13:37 -0700, mehdi b wrote:
> Hi,
> 
> I have two questions:
> 
> 1.How can I create report in a wicket web application? Is there any solution 
> integrated with wicket, for example jasper report?
> 
> 2.Does anyone use wicket-portlet in a portal server like liferay?
> 
> Tnx
> 
>  __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
-- 
Philip A. Chapman
 
Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP



signature.asc
Description: This is a digitally signed message part


Reporting Tool and Portal Integration

2007-10-23 Thread mehdi b
Hi,

I have two questions:

1.How can I create report in a wicket web application? Is there any solution 
integrated with wicket, for example jasper report?

2.Does anyone use wicket-portlet in a portal server like liferay?

Tnx

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Internationalization and Component orientation

2007-10-23 Thread alshamsi

Hi All,

   I am developing an application that supports English and Arabic.
Therefore based on the locale I need to shift components from right to left
and vice versa. Does wicket provide any utility to facilitate that? Does
anybody know any other framework that can be used on top of wicket to do so?

Regards,
Suad
-- 
View this message in context: 
http://www.nabble.com/Internationalization-and-Component-orientation-tf4679985.html#a13372442
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript call on AjaxFallbackDefaultDataTable

2007-10-23 Thread Cristi Manole
Hello,

I am wondering how I could make a javascript call each time the 
AjaxFallbackDefaultDataTable is refreshed. 

Thanks in advance.

updating components on Page from ModalWindow's internal Page's components

2007-10-23 Thread Kirk Israel
So I spoke too soon about this working out... I think the core problem
is kind of simple:
How can a component of a page inside a ModalWindow update components
on the page that holds the Modal Window?

More Specifically:
I have an "EditCreativePage" that creates an instance of
"UploadMediaPanelPage", then creates a ModalWindow with a createPage()
that gets the instance of the  "UploadMediaPanelPage".
"EditCreativePage" has a "MediaPanel" that has a link that sets a
callback inside of "UploadMediaPanelPage" and calls the
ModalWindow.show()

"UploadMediaPanelPage" has an upload Form, whose onSubmit seems to do
a fine job of parsing data of the uploaded image, and shows a preview
panel w/ the image etc. "UploadMediaPanelPage" also has its own
AjaxLinks for "Ok" and "Cancel" - when I pass the AjaxRequestTarget
the onClick for OK gets back to the "MediaPanel", and it tries to
update itself and its embedded ImageComponent.

Now, when I forget to call MediaPanel.setOutputMarkupId(true), the
ModalWindow shows the exception

 java.lang.IllegalArgumentException: cannot update component that does
not have setOutputMarkupId property set to true.

when I do call MediaPanel.setOutputMarkupId(true), there's no
exception, but the Ajax Debug window *inside the ModalWindow* shows
something like

ERROR: Component with id [[mediaimage40]] a was not found while trying
to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you
are trying to update.

and nothing shows up in th Ajax Debug of "EditCreativePage", which is
probably the problem...

Is there a work around for this? Either direct, or do I need to
somehow override the ModalWindow setWindowClosedCallback ? But in that
case, what do I use for an AjaxRequestTarget ?

Thanks for any help...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FilterToolbar API Changes

2007-10-23 Thread UPBrandon

That worked perfectly.  Thanks for the point in the right direction.  For
anyone looking for information on a similar problem, a change in
Wicket-Extensions 1.3 beta 4 requires users to pass a FilterForm to a
FilterToolbar when it is constructed.  If your table already uses components
like a CheckGroup, your DataTable should already be wrapped in a Form of
some sort.  Simply changing that Form to a FilterForm will allow you to use
that form for both a CheckGroup and the FilterToolbar.  But be aware that
you will now have to manually add a "focus-tracker" and "focus-restore"
component to your markup.  The corresponding objects are added on the Java
side by the FilterToolbar.  An example, can be found at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/src/java/wicket/contrib/phonebook/web/page/ListContactsPage.html


Martijn Dashorst wrote:
> 
> Check it out from subversion, then you are sure you have the latest
> (though it may still be a bit out of date).
> 
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/
> 
> Martijn
> 
> On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>>
>> Do you have an address for that?  I downloaded what I thought was the
>> latest
>> version from
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
>> yesterday but it appears to be using an older version of
>> Wicket-Extensions.
>> The page I was focusing on, ListContactsPage, uses the older (now
>> missing)
>> constructor that takes a DataTable and SortableDataProvider as
>> parameters.
>> Is a newer version available somewhere else online?
>>
>> -Brandon
>>
>>
>> igor.vaynberg wrote:
>> >
>> > see wicket-phonebook in wicket-stuff
>> >
>> > -igor
>> >
>> >
>> > On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Could somebody please explain the Wicket-Extensions 1.3 beta 4 API
>> >> changes
>> >> for the FilterToolbar?  I have looked everywhere for information and a
>> >> working example but can't seem to find any.  I found a mailing list
>> >> conversation about the reasoning for the change but nothing that helps
>> me
>> >> get things up and running again.
>> >>
>> >> From what I gather, instead of the FilterToolbar creating a form, the
>> >> user
>> >> needs to wrap their DataTable in a form (a FilterForm actually) and
>> pass
>> >> that form into the FilterToolbar when it's constructed.  The table I
>> am
>> >> working on displays records from a database and allows users to select
>> >> rows
>> >> to perform an action on.  Because of that, my DataTable is wrapped in
>> a
>> >> CheckGroup, which is wrapped in a form.  Since there was already a
>> Form
>> >> around the table, I tried switching it to a FilterForm and passing it
>> >> into
>> >> the FilterToolbar but I get an exception saying that the focus-tracker
>> >> component was added in code but not the markup.  Should I be able to
>> use
>> >> that form for both the check group and the filter toolbar or do I need
>> to
>> >> add another form somehow?  Any help would be appreciated.
>> >>
>> >> -Brandon
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13368543
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13370982
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13372438
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Eelco Hillenius
> System.setProperty("wicket.configuration", "development");

I just add -Dwicket.configuration=development in my Eclipse run configuration.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FilterToolbar API Changes

2007-10-23 Thread Martijn Dashorst
Check it out from subversion, then you are sure you have the latest
(though it may still be a bit out of date).

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/

Martijn

On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>
> Do you have an address for that?  I downloaded what I thought was the latest
> version from
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
> yesterday but it appears to be using an older version of Wicket-Extensions.
> The page I was focusing on, ListContactsPage, uses the older (now missing)
> constructor that takes a DataTable and SortableDataProvider as parameters.
> Is a newer version available somewhere else online?
>
> -Brandon
>
>
> igor.vaynberg wrote:
> >
> > see wicket-phonebook in wicket-stuff
> >
> > -igor
> >
> >
> > On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
> >>
> >> Could somebody please explain the Wicket-Extensions 1.3 beta 4 API
> >> changes
> >> for the FilterToolbar?  I have looked everywhere for information and a
> >> working example but can't seem to find any.  I found a mailing list
> >> conversation about the reasoning for the change but nothing that helps me
> >> get things up and running again.
> >>
> >> From what I gather, instead of the FilterToolbar creating a form, the
> >> user
> >> needs to wrap their DataTable in a form (a FilterForm actually) and pass
> >> that form into the FilterToolbar when it's constructed.  The table I am
> >> working on displays records from a database and allows users to select
> >> rows
> >> to perform an action on.  Because of that, my DataTable is wrapped in a
> >> CheckGroup, which is wrapped in a form.  Since there was already a Form
> >> around the table, I tried switching it to a FilterForm and passing it
> >> into
> >> the FilterToolbar but I get an exception saying that the focus-tracker
> >> component was added in code but not the markup.  Should I be able to use
> >> that form for both the check group and the filter toolbar or do I need to
> >> add another form somehow?  Any help would be appreciated.
> >>
> >> -Brandon
> >> --
> >> View this message in context:
> >> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13368543
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13370982
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FilterToolbar API Changes

2007-10-23 Thread UPBrandon

Do you have an address for that?  I downloaded what I thought was the latest
version from
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
yesterday but it appears to be using an older version of Wicket-Extensions. 
The page I was focusing on, ListContactsPage, uses the older (now missing)
constructor that takes a DataTable and SortableDataProvider as parameters. 
Is a newer version available somewhere else online?

-Brandon


igor.vaynberg wrote:
> 
> see wicket-phonebook in wicket-stuff
> 
> -igor
> 
> 
> On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>>
>> Could somebody please explain the Wicket-Extensions 1.3 beta 4 API
>> changes
>> for the FilterToolbar?  I have looked everywhere for information and a
>> working example but can't seem to find any.  I found a mailing list
>> conversation about the reasoning for the change but nothing that helps me
>> get things up and running again.
>>
>> From what I gather, instead of the FilterToolbar creating a form, the
>> user
>> needs to wrap their DataTable in a form (a FilterForm actually) and pass
>> that form into the FilterToolbar when it's constructed.  The table I am
>> working on displays records from a database and allows users to select
>> rows
>> to perform an action on.  Because of that, my DataTable is wrapped in a
>> CheckGroup, which is wrapped in a form.  Since there was already a Form
>> around the table, I tried switching it to a FilterForm and passing it
>> into
>> the FilterToolbar but I get an exception saying that the focus-tracker
>> component was added in code but not the markup.  Should I be able to use
>> that form for both the check group and the filter toolbar or do I need to
>> add another form somehow?  Any help would be appreciated.
>>
>> -Brandon
>> --
>> View this message in context:
>> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13368543
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13370982
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



retrieving page from ModalWindow's setPageCreator(ModalWindow.PageCreator)

2007-10-23 Thread Kirk Israel
I looked at the JavaDoc and inspected the class, but couldn't find a
clear way of getting the page I'm generating in
ModalWindow.setPageCreator's createPage() out of the ModalWindow.

(My situation is a little complex: I want a single "upload image"
ModalWindow (and corresponding page embedded in that, I think it has
to be a page so that I can use the Upload tag properly) for the entire
parent page. And then components of the parent page .show() the
ModalWindow after passing themselves into its embedded page, so that
the embedded page can call them back with the data the user uploaded.)

It's not a blocking issue, because createPage() is being defined
inside the parentPage, and I can set a reference to the new page, but
it means the parentPage has to expose two seperate elements: the
ModalWindow itself, so it can be show()'d, and the embedded Page, so
the Page's callback function can be set.

So, is there an obvious way of doing this that I missed? I see there's
a getPage() function but that seems to be the basic Component
implementation of it.

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing PageMap ?

2007-10-23 Thread mfs

Makes sense...and calling the getUser method when you need it, and that would
onBeginRequest ?

Farhan.



Johan Compagner wrote:
> 
> No it has Nothing to do with how wicket caches or something
> Its just how hibernate tracks its own session objects
> And an object that you load in one request with a hibernate session object
> if you try to reuse that object in another one then that object of the
> last
> time is not attached to the hibernate session of this request
> So you get a StaleObjectException or something like that don't know
> exactly
> 
> And what does the wicket Session impl have to do with how YOU use database
> object in it
> Its just an object in the http session. We don't touch or do anything with
> the objects you put into it.
> 
> And in this example it has nothing to do with wickets lazy lookup.  (by
> using detachable models like LoadableDetachableModel)
> because if you want a user that you want pretty much all your request then
> store the userid in the wicket session
> and then in your custom request cycle do this:
> MyRequestCycle
> {
> User user = null;
> getUser()
> {
>if (user == null)
> {
>   user = dao.loadById(getSession().getUserId());
> }
>return user;
> }
> }
> 
> 
> 
> On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
>>
>>
>> So basically what you are saying is that caching hibernate object in
>> wicket's
>> session can cause issues with hibernate when using the cached
>> object...either in the same request or any subsequent request..right ? I
>> wonder if that has anything to do with wickets session impl, its just
>> would
>> be true for any web-framework ?
>>
>> Also can you point me to an article on wicket's lazy lookup ? I still
>> dont
>> completely follow you..
>>
>>
>>
>> Johan Compagner wrote:
>> >
>> >>
>> >>
>> >> sorry but I dont completely get your point on hibernate objects not
>> >> attached
>> >> to the current session...can you please elaborate..I mean given the
>> >> context
>> >> in discussion if lets say i stored hibernate objects in the current
>> >> session,
>> >> would that cause any issues..is that what you mean OR ??
>> >
>> >
>> > Sorry current Hibernate sessions. If you want to use your Wicket
>> session
>> > cached object
>> > again in hibernate in that request then you get hibernate errors.
>> (because
>> > it is not attached to the current hibernate session)
>> >
>> >
>> >> YOU mean using the lazy mechanism at the hibernate layer ?
>> >
>> >
>> >
>> > no the lazy lookup is in wicket.
>> > your request cycle has an method getUser() and only when you call that
>> you
>> > load it in
>> > Then it can be cached by hibernate in the second level cache of
>> hibernate.
>> >
>> > johan
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13354462
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13370686
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FilterToolbar API Changes

2007-10-23 Thread Igor Vaynberg
see wicket-phonebook in wicket-stuff

-igor


On 10/23/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>
> Could somebody please explain the Wicket-Extensions 1.3 beta 4 API changes
> for the FilterToolbar?  I have looked everywhere for information and a
> working example but can't seem to find any.  I found a mailing list
> conversation about the reasoning for the change but nothing that helps me
> get things up and running again.
>
> From what I gather, instead of the FilterToolbar creating a form, the user
> needs to wrap their DataTable in a form (a FilterForm actually) and pass
> that form into the FilterToolbar when it's constructed.  The table I am
> working on displays records from a database and allows users to select rows
> to perform an action on.  Because of that, my DataTable is wrapped in a
> CheckGroup, which is wrapped in a form.  Since there was already a Form
> around the table, I tried switching it to a FilterForm and passing it into
> the FilterToolbar but I get an exception saying that the focus-tracker
> component was added in code but not the markup.  Should I be able to use
> that form for both the check group and the filter toolbar or do I need to
> add another form somehow?  Any help would be appreciated.
>
> -Brandon
> --
> View this message in context: 
> http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13368543
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicketstuff push and sharing an IChannelService

2007-10-23 Thread Xavier Hanin
On 10/23/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
>
>
> Hi Xavier,
>
> thanks for your reply - well yes, that's certainly right. I've just lost
> sight of it. But I got another question: how stable is the
> wicketstuff-push
> project or what sections are stable and which have to be improved for use
> in
> a professional webapp?


AFAIK wicketstuff-push is developed by vincent demay and myself. Vincent
worked on the cometd channel implementation, and I've worked mostly on the
timer based IPushService implementation (where events do not come from the
client at all). I don't know how stable is the channel implementation since
I don't use it myself, maybe Vincent could give more details (not sure if
it's used in production or not). For the IPushService implementation, it
still requires more testing and improvements, because the problem is not
easy to solve with a timer based polling implementation: we have to detect
clients disconnection, and also handle back button where pages go back to
life from the a serialized form. And we also need to work on a comet based
implementation of this push service. So I think there's still need for
improvement and bug fixing in this section.

BTW, I've just checked in an improvement about this problem of page
deserialization which required an API change for the IPushService. If you
plan to use it, do not forget to do an svn update.

Xavier

thanks in advance
>
> Michael
>
> Xavier Hanin wrote:
> >
> > On 10/22/07, Michael Sparer <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi,
> >>
> >> today I wondered if there's a wicket-approach for pushing messages from
> >> the
> >> server to the client (also called reverse ajax or pushlets). Well yes,
> >> there
> >> is one called wicketstuff push. I looked at its examples and soon
> managed
> >> to
> >> implement my own pushing stuff. In the examples (chat-example) however,
> >> the
> >> ChannelService that delivers the messages to its listeners, is stored
> in
> >> the
> >> application. I.e. there is only one channel for the whole application.
> >> Now imagine I want to create an additional private-chat-room for two
> >> users
> >> --> I'd need a ChannelService only for two users. So my question is:
> >> what's
> >> the wicket way to pass and store such an object which is applicable
> only
> >> for
> >> two users (sessions)?
> >
> >
> > You can use an application wide ChannelService and use the channel name
> > ("chat/message" in the example) to isolate messages by
> private-chat-room.
> >
> > Xavier
> >
> > Thanks in advance
> >>
> >> Michael
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/wicketstuff-push-and-sharing-an-IChannelService-tf4671463.html#a13345278
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Xavier Hanin - Independent Java Consultant
> > http://xhab.blogspot.com/
> > http://ant.apache.org/ivy/
> > http://www.xoocode.org/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/wicketstuff-push-and-sharing-an-IChannelService-tf4671463.html#a13358479
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/


Re: AbstractMethodError in logging

2007-10-23 Thread Sasha O

John --

Thanks for the quick reply. That did it!

-- Sasha

John Krasnay wrote:

On Tue, Oct 23, 2007 at 09:49:25AM -0700, Sasha O wrote:

Hello Wicket people --

Love the framework so far.

Getting this message, have no idea how to deal with it:

<<<
Exception in thread "ModificationWatcher Task" 
java.lang.AbstractMethodError: 
org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled()Z

at org.apache.wicket.util.thread.Task$1.run(Task.java:103)
at java.lang.Thread.run(Thread.java:595)
Apparently it relates to slf4j which otherwise seems to be working fine.

Thanks for your help,
-- Sasha



Hi Sasha,

I recently had this problem when upgrading from beta2 to beta4. Check
your version of slf4j-log4j12 (assuming you're using log4j-1.2.*). The
version should match the version of slf4j-api that Wicket uses. For
beta4 it's 1.4.2. The following dependency in pom.xml did the trick for
me:


  org.slf4j
  slf4j-log4j12
  1.4.2


jk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AbstractMethodError in logging

2007-10-23 Thread John Krasnay
On Tue, Oct 23, 2007 at 09:49:25AM -0700, Sasha O wrote:
> Hello Wicket people --
> 
> Love the framework so far.
> 
> Getting this message, have no idea how to deal with it:
> 
> <<<
> Exception in thread "ModificationWatcher Task" 
> java.lang.AbstractMethodError: 
> org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled()Z
>   at org.apache.wicket.util.thread.Task$1.run(Task.java:103)
>   at java.lang.Thread.run(Thread.java:595)
> >>>
> 
> Apparently it relates to slf4j which otherwise seems to be working fine.
> 
> Thanks for your help,
> -- Sasha
> 

Hi Sasha,

I recently had this problem when upgrading from beta2 to beta4. Check
your version of slf4j-log4j12 (assuming you're using log4j-1.2.*). The
version should match the version of slf4j-api that Wicket uses. For
beta4 it's 1.4.2. The following dependency in pom.xml did the trick for
me:


  org.slf4j
  slf4j-log4j12
  1.4.2


jk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AbstractMethodError in logging

2007-10-23 Thread Sasha O

Hello Wicket people --

Love the framework so far.

Getting this message, have no idea how to deal with it:

<<<
Exception in thread "ModificationWatcher Task" 
java.lang.AbstractMethodError: 
org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled()Z

at org.apache.wicket.util.thread.Task$1.run(Task.java:103)
at java.lang.Thread.run(Thread.java:595)
>>>

Apparently it relates to slf4j which otherwise seems to be working fine.

Thanks for your help,
-- Sasha


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FilterToolbar API Changes

2007-10-23 Thread UPBrandon

Could somebody please explain the Wicket-Extensions 1.3 beta 4 API changes
for the FilterToolbar?  I have looked everywhere for information and a
working example but can't seem to find any.  I found a mailing list
conversation about the reasoning for the change but nothing that helps me
get things up and running again.

>From what I gather, instead of the FilterToolbar creating a form, the user
needs to wrap their DataTable in a form (a FilterForm actually) and pass
that form into the FilterToolbar when it's constructed.  The table I am
working on displays records from a database and allows users to select rows
to perform an action on.  Because of that, my DataTable is wrapped in a
CheckGroup, which is wrapped in a form.  Since there was already a Form
around the table, I tried switching it to a FilterForm and passing it into
the FilterToolbar but I get an exception saying that the focus-tracker
component was added in code but not the markup.  Should I be able to use
that form for both the check group and the filter toolbar or do I need to
add another form somehow?  Any help would be appreciated.

-Brandon
-- 
View this message in context: 
http://www.nabble.com/FilterToolbar-API-Changes-tf4678799.html#a13368543
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-23 Thread Francisco Diaz Trepat - gmail
Hi. I'm going to try to explain the best that I can and without posting code
at first the issue that is happening.

I have the following panels A and C. A has two instances of B nested inside
of it. C is empty:

[

==PANEL-A==

[

==PANEL-B1==

]

[

==PANEL-B2==

]

]


[
==PANEL-C==
]

What happens is that on another Panel that represent the Page content, lets
call it ContentPanel I need to toggle between panels A and C with the click
of an Ajax Link.

The first state is with panel C that it is empty (actually with lots of
HiddenFields, but empty visually). On click I need to Show the A panel that
has viewable content. Finally on another click I need to go back to the
original state of C panel.

So far so good. The issue is as follows:

The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6 and 7
it is not an issue as everything works fine).

What happens is that I click on the link, and panel A shows perfectly. But
when I click again to put the C panel back, the A panel gets Partially
removed, that is panel A's first panel B instance B1 gets removed, but B2 is
not removed and it is still visible, plus I get the C panel, as C panel
doesn't have viewable content it doesn't add to the visual problem. *Ej*:

[

==PANEL-A==


[

==PANEL-B2==

]

]

[
==PANEL-C==
]

Now If I click again, I get Panel A with "2 instances of B2" as panel B2 was
not removed.
[

==PANEL-A==

[

==PANEL-B1==

]

[

==PANEL-B2==

]

[

==PANEL-B2==

]

]

So and so forth every click and click, I get panel A partially removed and
when added again I have another instance of B2 as it is never removed.



Any Ideas?

thanks,

f(t)


Re: i18n feedbackmessages

2007-10-23 Thread Jeremy Thomerson
info(getString("your.key"));

Jeremy Thomerson

On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi, i wonder wether the
> info("feedback message"); could be internationalized, ie.
> info("feedback.success"); with a corresponding entry in the xyz.properties
> .
> is there a workaround?
> thanks very much,
> best regards, nico
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: i18n feedbackmessages

2007-10-23 Thread Igor Vaynberg
info(getstring("feedback.success"));

-igor


On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, i wonder wether the
> info("feedback message"); could be internationalized, ie.
> info("feedback.success"); with a corresponding entry in the xyz.properties.
> is there a workaround?
> thanks very much,
> best regards, nico
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing components with new data w/o altering the backing model

2007-10-23 Thread Igor Vaynberg
dont know if you need that, just add javascript to the ajax target to
set the values on the fields..

-igor


On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I think what you could try (though it would be a nasty hack :) ) is to
> set rawInput property on FormComponent. However, you'll need some
> introspection to do that, as it is private and we don't plan to
> provide an accessor for it :)
>
> -Matej
>
> On 10/23/07, karthik Guru <[EMAIL PROTECTED]> wrote:
> > I have a form like this -
> >
> > Name:  [.]
> > Zip:  [.]
> > City: [.]
> > State:   [.]
> >
> > [Save]
> >
> > On filling the zip i want to auto populate the city and state. I can attach
> > a AjaxFormComponentUpdatingBehavior to the zip field and do this. But I
> > don't want to update the zip model, so i plan to have my version of
> > AjaxFormComponentUpdatingBehavior and 'not' update the model. I can possibly
> > get the user entered value from the convertedInput.
> >
> > But I don't want to want to update the city and the state model either to
> > auto-populate the fields.
> >
> > Basically I want to hold off on the model updates until somebody clicks the
> > save button.
> >
> > Can i set the converted input on a component and get it to refresh through
> > Ajax?
> > I know that I can do this through javascript ($(fieldId).value = ''blah
> > blah')and add it to AjaxTarget. But i was wondering if i can just work with
> > components (do setConvertedInput / something) and then add it to Ajaxtarget
> > and make it work?
> >
> > -- karthik --
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing selection in RadioChoice

2007-10-23 Thread wheleph

Now I decided to use RadioGroup with nested Radios. To each radio I attach
AjaxEventBehavior for onclick event and update my model taking into account
the index of radio clicked. This workaround perfectly satisfies me.

Thanks everybody for help.

wheleph
-- 
View this message in context: 
http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13367355
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Two forms?

It uses two *FormComponents*, the base class of all input controls.

Form form = new Form("form");
form.add(new PasswordTextFIeld("field1"));
form.add(new PasswordTextField("field2"));
form.add(new EqualPasswordInputValidator(field1, field2));

Martijn

On 10/23/07, Fernando Wermus <[EMAIL PROTECTED]> wrote:
> It takes two forms to validate but I have just one form. I dont figure it
> out how it works. I am a newbie
>
> On 10/23/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> >
> > Why not use EqualPasswordInputValidator ?
> >
> > Martijn
> >
> > On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Hi Fernando,
> > > i solved this be integrating the check into the onSubmit method:
> > >
> > > /**
> > >  * @see org.apache.wicket.markup.html.form.Form#onSubmit()
> > >  */
> > > @Override
> > > public void onSubmit()
> > > {
> > > //validate the password fields...
> > > if (!(getModelObject() instanceof
> > RegistrationFormInputModel)) {
> > > error("internal error");
> > > return;
> > > }
> > > RegistrationFormInputModel model =
> > > (RegistrationFormInputModel)getModelObject();
> > >
> > > String pw = model.getInpPassword();
> > > if (pw!=null) {
> > > if (pw.length() > > error("password to short");
> > > }
> > > if (pw.equals(model.getInpPasswordAgain())) {
> > > //password validation successful.
> > > } else {
> > >
> > > error("passwords do not match");
> > > }
> > > } else {
> > > //you should comment out this one :)
> > > info("password: "+model.getInpPassword()+ " /
> > > "+model.getInpPasswordAgain());
> > > //error("no password provided");
> > > }
> > > [..]
> > >
> > > regards, nico
> > >
> > >
> > > Fernando Wermus schrieb:
> > > > In the Wizard example for singing up, I doesn't appear two
> > PasswordTextField
> > > > to verify if both were completed with the same password. I imagine
> > this is
> > > > something solved and then I was looking at google. At the same time it
> > is
> > > > something easy. How can I solve by my self? Just a guide.
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.0-beta4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Fernando Wermus.
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
I am sorry! I understood. FormComponent is the parent of PasswordTextField.
I thought it was a class related to forms.

On 10/23/07, Fernando Wermus <[EMAIL PROTECTED]> wrote:
>
> It takes two forms to validate but I have just one form. I dont figure it
> out how it works. I am a newbie
>
> On 10/23/07, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> >
> > Why not use EqualPasswordInputValidator ?
> >
> > Martijn
> >
> > On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Hi Fernando,
> > > i solved this be integrating the check into the onSubmit method:
> > >
> > > /**
> > >  * @see org.apache.wicket.markup.html.form.Form#onSubmit()
> > >  */
> > > @Override
> > > public void onSubmit()
> > > {
> > > //validate the password fields...
> > > if (!(getModelObject() instanceof
> > RegistrationFormInputModel)) {
> > > error("internal error");
> > > return;
> > > }
> > > RegistrationFormInputModel model =
> > > (RegistrationFormInputModel)getModelObject();
> > >
> > > String pw = model.getInpPassword();
> > > if (pw!=null) {
> > > if (pw.length() > > error("password to short");
> > > }
> > > if (pw.equals(model.getInpPasswordAgain())) {
> > > //password validation successful.
> > > } else {
> > >
> > > error("passwords do not match");
> > > }
> > > } else {
> > > //you should comment out this one :)
> > > info("password: "+model.getInpPassword()+ " /
> > > "+model.getInpPasswordAgain());
> > > //error("no password provided");
> > > }
> > > [..]
> > >
> > > regards, nico
> > >
> > >
> > > Fernando Wermus schrieb:
> > > > In the Wizard example for singing up, I doesn't appear two
> > PasswordTextField
> > > > to verify if both were completed with the same password. I imagine
> > this is
> > > > something solved and then I was looking at google. At the same time
> > it is
> > > > something easy. How can I solve by my self? Just a guide.
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.0-beta4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Fernando Wermus.




-- 
Fernando Wermus.


Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
It takes two forms to validate but I have just one form. I dont figure it
out how it works. I am a newbie

On 10/23/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>
> Why not use EqualPasswordInputValidator ?
>
> Martijn
>
> On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi Fernando,
> > i solved this be integrating the check into the onSubmit method:
> >
> > /**
> >  * @see org.apache.wicket.markup.html.form.Form#onSubmit()
> >  */
> > @Override
> > public void onSubmit()
> > {
> > //validate the password fields...
> > if (!(getModelObject() instanceof
> RegistrationFormInputModel)) {
> > error("internal error");
> > return;
> > }
> > RegistrationFormInputModel model =
> > (RegistrationFormInputModel)getModelObject();
> >
> > String pw = model.getInpPassword();
> > if (pw!=null) {
> > if (pw.length() > error("password to short");
> > }
> > if (pw.equals(model.getInpPasswordAgain())) {
> > //password validation successful.
> > } else {
> >
> > error("passwords do not match");
> > }
> > } else {
> > //you should comment out this one :)
> > info("password: "+model.getInpPassword()+ " /
> > "+model.getInpPasswordAgain());
> > //error("no password provided");
> > }
> > [..]
> >
> > regards, nico
> >
> >
> > Fernando Wermus schrieb:
> > > In the Wizard example for singing up, I doesn't appear two
> PasswordTextField
> > > to verify if both were completed with the same password. I imagine
> this is
> > > something solved and then I was looking at google. At the same time it
> is
> > > something easy. How can I solve by my self? Just a guide.
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Fernando Wermus.


Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Why not use EqualPasswordInputValidator ?

Martijn

On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Fernando,
> i solved this be integrating the check into the onSubmit method:
>
> /**
>  * @see org.apache.wicket.markup.html.form.Form#onSubmit()
>  */
> @Override
> public void onSubmit()
> {
> //validate the password fields...
> if (!(getModelObject() instanceof RegistrationFormInputModel)) {
> error("internal error");
> return;
> }
> RegistrationFormInputModel model =
> (RegistrationFormInputModel)getModelObject();
>
> String pw = model.getInpPassword();
> if (pw!=null) {
> if (pw.length() error("password to short");
> }
> if (pw.equals(model.getInpPasswordAgain())) {
> //password validation successful.
> } else {
>
> error("passwords do not match");
> }
> } else {
> //you should comment out this one :)
> info("password: "+model.getInpPassword()+ " /
> "+model.getInpPasswordAgain());
> //error("no password provided");
> }
> [..]
>
> regards, nico
>
>
> Fernando Wermus schrieb:
> > In the Wizard example for singing up, I doesn't appear two PasswordTextField
> > to verify if both were completed with the same password. I imagine this is
> > something solved and then I was looking at google. At the same time it is
> > something easy. How can I solve by my self? Just a guide.
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Frank Bille
You can also set a system property "wicket.configuration". Thats what I do:

In my web.xml I have


configuration
deployment


so it's there for live deploying, but in my JettyStarter I do:

System.setProperty("wicket.configuration", "development");

So it's development when I develop.

Frank



On 10/23/07, Suad AlShamsi <[EMAIL PROTECTED]> wrote:
>
> You can either override getConfigurationType() in the Application class
>
>
> @Override
> public String getConfigurationType() {
> return Application.DEPLOYMENT;
> }
>
> or you can set in in the web.xml
>
> 
> configuration
> deployment
> 
>
> Regards,
> Suad
>
> raybristol wrote:
> > dummy question, how to set wicket in Deloyment mode? There is a
> > Application#getConfigurationType() but I expect something like
> > Application#setConfigurationType() which does not exist so I thing I
> must
> > miss something here...
> >
> > Many thanks
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wizard and PasswordTextField

2007-10-23 Thread [EMAIL PROTECTED]

Hi Fernando,
i solved this be integrating the check into the onSubmit method:

   /**
* @see org.apache.wicket.markup.html.form.Form#onSubmit()
*/
   @Override
   public void onSubmit()
   {
   //validate the password fields...
   if (!(getModelObject() instanceof RegistrationFormInputModel)) {
   error("internal error");
   return;
   }
   RegistrationFormInputModel model = 
(RegistrationFormInputModel)getModelObject();


   String pw = model.getInpPassword();
   if (pw!=null) {
   if (pw.length()  
   error("passwords do not match");

   }
   } else {
//you should comment out this one :)
   info("password: "+model.getInpPassword()+ " / 
"+model.getInpPasswordAgain());

   //error("no password provided");
   }
[..]

regards, nico


Fernando Wermus schrieb:

In the Wizard example for singing up, I doesn't appear two PasswordTextField
to verify if both were completed with the same password. I imagine this is
something solved and then I was looking at google. At the same time it is
something easy. How can I solve by my self? Just a guide.

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n feedbackmessages

2007-10-23 Thread [EMAIL PROTECTED]

Hi, i wonder wether the
info("feedback message"); could be internationalized, ie.
info("feedback.success"); with a corresponding entry in the xyz.properties.
is there a workaround?
thanks very much,
best regards, nico

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
In the Wizard example for singing up, I doesn't appear two PasswordTextField
to verify if both were completed with the same password. I imagine this is
something solved and then I was looking at google. At the same time it is
something easy. How can I solve by my self? Just a guide.

-- 
Fernando Wermus.


Re: Accessing PageMap ?

2007-10-23 Thread Johan Compagner
No it has Nothing to do with how wicket caches or something
Its just how hibernate tracks its own session objects
And an object that you load in one request with a hibernate session object
if you try to reuse that object in another one then that object of the last
time is not attached to the hibernate session of this request
So you get a StaleObjectException or something like that don't know exactly

And what does the wicket Session impl have to do with how YOU use database
object in it
Its just an object in the http session. We don't touch or do anything with
the objects you put into it.

And in this example it has nothing to do with wickets lazy lookup.  (by
using detachable models like LoadableDetachableModel)
because if you want a user that you want pretty much all your request then
store the userid in the wicket session
and then in your custom request cycle do this:
MyRequestCycle
{
User user = null;
getUser()
{
   if (user == null)
{
  user = dao.loadById(getSession().getUserId());
}
   return user;
}
}



On 10/23/07, mfs <[EMAIL PROTECTED]> wrote:
>
>
> So basically what you are saying is that caching hibernate object in
> wicket's
> session can cause issues with hibernate when using the cached
> object...either in the same request or any subsequent request..right ? I
> wonder if that has anything to do with wickets session impl, its just
> would
> be true for any web-framework ?
>
> Also can you point me to an article on wicket's lazy lookup ? I still dont
> completely follow you..
>
>
>
> Johan Compagner wrote:
> >
> >>
> >>
> >> sorry but I dont completely get your point on hibernate objects not
> >> attached
> >> to the current session...can you please elaborate..I mean given the
> >> context
> >> in discussion if lets say i stored hibernate objects in the current
> >> session,
> >> would that cause any issues..is that what you mean OR ??
> >
> >
> > Sorry current Hibernate sessions. If you want to use your Wicket session
> > cached object
> > again in hibernate in that request then you get hibernate errors.
> (because
> > it is not attached to the current hibernate session)
> >
> >
> >> YOU mean using the lazy mechanism at the hibernate layer ?
> >
> >
> >
> > no the lazy lookup is in wicket.
> > your request cycle has an method getUser() and only when you call that
> you
> > load it in
> > Then it can be cached by hibernate in the second level cache of
> hibernate.
> >
> > johan
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13354462
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Quick follow-up

2007-10-23 Thread Oliver Lieven

Hi,

what about using products.setOutputMarkupId(true) ? 

regards,
Oliver


Martijn Dashorst wrote:
> 
> Is the products a repeater (ListView, RepeatingView, DataView)? Then
> it doesn't have its own markup (see for instance
> http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html).
> 
> Martijn
> 
> On 10/23/07, JohannesK <[EMAIL PROTECTED]> wrote:
>>
>> I managed to solve that problem, but i still cannot get the markup id to
>> show
>> up in my div.
>>
>> These two calls:
>> products.setMarkupId("productlist"+item.getIndex());
>> products.setOutputMarkupPlaceholderTag(true);
>>
>> don't seem to do anything. I can change the class of the div just fine
>> with
>> a SimpleAttributeModifier, but for the div id i can't get it to work.
>> --
>> View this message in context:
>> http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13364719
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13365854
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Quick follow-up

2007-10-23 Thread Martijn Dashorst
Is the products a repeater (ListView, RepeatingView, DataView)? Then
it doesn't have its own markup (see for instance
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html).

Martijn

On 10/23/07, JohannesK <[EMAIL PROTECTED]> wrote:
>
> I managed to solve that problem, but i still cannot get the markup id to show
> up in my div.
>
> These two calls:
> products.setMarkupId("productlist"+item.getIndex());
> products.setOutputMarkupPlaceholderTag(true);
>
> don't seem to do anything. I can change the class of the div just fine with
> a SimpleAttributeModifier, but for the div id i can't get it to work.
> --
> View this message in context: 
> http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13364719
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reload Captcha Image

2007-10-23 Thread Jeremy Thomerson
Have you tried SubmitLink?  It will submit the form (which saves your
values) and allow you to just move your code from onClick() to onSubmit()
(can't remember if that's the exact method signature).

Jeremy Thomerson

On 10/22/07, Toscano <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I'm having problems with a Captcha image reloading method, and I'm sure it
> must be very easy to solve, but I can't!!
> I have a form with about 10 fields, and at the end one Captcha image using
> CaptchaImageResource and Image controls. Sometimes it is difficult to
> read,
> so I put one link with the following OnClick code:
>
>public void onClick()
>   {
>  imagePass=randomString(6,8);
>  captchaImageResource = new CaptchaImageResource(imagePass);
>  captchaImage.setImageResource(captchaImageResource);
>   }
>
> I mean, I create a new captcha image correctly, but all the content of the
> fields are removed! This means that the user has to input them again. I
> think it is just a matter of the Link... if I just leave the OnClick code
> blank, it reloads the page without maintaining the values.
>
> I have a Form and a CompoundPropertyModel which works fine:
>
>  // Form, pojo, and compound property model
>   InitiationForm initiationForm;
>   NewUser newUser;
>   CompoundPropertyModel initiationFormModel;
>
> //Create CompoundPropertyModel
> initiationFormModel = new CompoundPropertyModel(newUser);
>
>// Form
>initiationForm = new InitiationForm ("initiationForm",
> initiationFormModel);
>
>
> How can I refresh the image without losing the already input values?
>
> Thank you very very much for your time!
> Oskar
>
> --
> View this message in context:
> http://www.nabble.com/Reload-Captcha-Image-tf4674760.html#a13356193
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Quick follow-up

2007-10-23 Thread JohannesK

I managed to solve that problem, but i still cannot get the markup id to show
up in my div.

These two calls:
products.setMarkupId("productlist"+item.getIndex());
products.setOutputMarkupPlaceholderTag(true);

don't seem to do anything. I can change the class of the div just fine with
a SimpleAttributeModifier, but for the div id i can't get it to work.
-- 
View this message in context: 
http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13364719
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Vit Rozkovec

You're all so fast :)

Suad AlShamsi wrote:

You can either override getConfigurationType() in the Application class


@Override
   public String getConfigurationType() {
   return Application.DEPLOYMENT;
   }

or you can set in in the web.xml

   
   configuration
   deployment
   

Regards,
Suad

raybristol wrote:

dummy question, how to set wicket in Deloyment mode? There is a
Application#getConfigurationType() but I expect something like
Application#setConfigurationType() which does not exist so I thing I 
must

miss something here...

Many thanks
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Vit Rozkovec

Or you can override it in your application to return the mode you want.

@Override
public String getConfigurationType() {
return Application.DEVELOPMENT;
// return Application.DEPLOYMENT;
}

Vitek

raybristol wrote:

dummy question, how to set wicket in Deloyment mode? There is a
Application#getConfigurationType() but I expect something like
Application#setConfigurationType() which does not exist so I thing I must
miss something here...

Many thanks
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread raybristol

Thanks very much everyone!



swaroop belur wrote:
> 
> Put this in ur web.xml
> 
> 
>   configuration
>   development
> 
> 
> 
> On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>>
>>
>> dummy question, how to set wicket in Deloyment mode? There is a
>> Application#getConfigurationType() but I expect something like
>> Application#setConfigurationType() which does not exist so I thing I must
>> miss something here...
>>
>> Many thanks
>> --
>> View this message in context:
>> http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364601
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Suad AlShamsi

You can either override getConfigurationType() in the Application class


@Override
   public String getConfigurationType() {
   return Application.DEPLOYMENT;
   }

or you can set in in the web.xml

   
   configuration
   deployment
   

Regards,
Suad

raybristol wrote:

dummy question, how to set wicket in Deloyment mode? There is a
Application#getConfigurationType() but I expect something like
Application#setConfigurationType() which does not exist so I thing I must
miss something here...

Many thanks
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Dipu Seminlal
you can specify it in your web.xml

On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>
>
> dummy question, how to set wicket in Deloyment mode? There is a
> Application#getConfigurationType() but I expect something like
> Application#setConfigurationType() which does not exist so I thing I must
> miss something here...
>
> Many thanks
> --
> View this message in context:
> http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Swaroop Belur
Put this in ur web.xml


  configuration
  development



On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>
>
> dummy question, how to set wicket in Deloyment mode? There is a
> Application#getConfigurationType() but I expect something like
> Application#setConfigurationType() which does not exist so I thing I must
> miss something here...
>
> Many thanks
> --
> View this message in context:
> http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread raybristol

dummy question, how to set wicket in Deloyment mode? There is a
Application#getConfigurationType() but I expect something like
Application#setConfigurationType() which does not exist so I thing I must
miss something here...

Many thanks
-- 
View this message in context: 
http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Show indicator after modal window close

2007-10-23 Thread legol

Hi All!!!

I have made my own indicating div that covers full site when special actions
are made. Now what i need is to invoke this while WindowClosedCallback is
running. I have page in modal window and after closing it, it needs a long
time to perform all actions. Problem is when this actions are running when i
click on something else application brakes. I tried to make
IndicatingWindowClosedCallback by implementing IAjaxIndicatorAware but it
doesn't work. Do you have any idea to solve this problem?? Did anybody have
similar problem??
-- 
View this message in context: 
http://www.nabble.com/Show-indicator-after-modal-window-close-tf4677300.html#a13363804
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket id vs. markup id (wicket-1.3.0-beta4)

2007-10-23 Thread JohannesK

Hi all

I've been using Wicket for a while now and i love it to death. Today i
encountered a perplexing problem which i haven't been able to get around. My
goal is simply to create a link that shows/hides a div when clicked, and to
create the id of that div dynamically. What i am doing now is this:

JAVA:
final ProductListView products = new ProductListView("items",
order.getItems()); // Just a ListView basically
products.setMarkupId("productlist"+item.getIndex());  // Set the markup id
to hide/show the component
products.setOutputMarkupPlaceholderTag(true);
add(products);
add(new AjaxFallbackLink("toggle"){  // Link to do the toggling.. calls a
javascript function with the id to toggle it
   @Override
public void onClick(AjaxRequestTarget arg0) {}
}.add(new AttributeModifier("onClick", true, new
Model("javascript:return
toggleDiv("+("productlist"+item.getIndex())+");";

HTML:
 # Click me! 

..some stuff here...



So that should add the component with Wicket id "items" and the markup id
"productlist0" (for example). When the page is rendered this error pops up:

WicketMessage: Unable to find component with id 'items' in [MarkupContainer
[Component id = panel, page = web.page.authenticated.IndexPage, path =
2:tabs:panel.DefaultPanel, isVisible = true, isVersioned = true]]. This
means that you declared wicket:id=items in your markup, but that you either
did not add the component to your page at all, or that the hierarchy does
not match.

Now to me, that looks like it's using the markup id i set as the wicked id
of the component. Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Wicket-id-vs.-markup-id-%28wicket-1.3.0-beta4%29-tf4677248.html#a13363648
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Basic question - checkboxes

2007-10-23 Thread Swaroop Belur
Have a look at AbstractCheckBoxModel . Will give u good idea.
Override select() to do ur stuff. For example store the table
rowmodel identifier in the model to to do some stuff for that row.



On 10/23/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote:
>
> Still experimenting with the framework. I've managed to load data from a
> database and display it in a table on a page. Now I'd like to add a
> column of checkboxes, and do something to the selected rows when I press
> a button on the page. Can someone point me at some documentation or
> sample code that shows the best way to do that? I think I know how to
> get the checkboxes onto the screen, but I'm not sure how to
>
> a) Figure out which ones are checked
> b) Access the data in the corresponding row of the table...
>
> I'm sure this is basic stuff - any help appreciated...
>
> thanks very much,
>
> nbc
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Basic question - checkboxes

2007-10-23 Thread Neil B. Cohen
Still experimenting with the framework. I've managed to load data from a 
database and display it in a table on a page. Now I'd like to add a 
column of checkboxes, and do something to the selected rows when I press 
a button on the page. Can someone point me at some documentation or 
sample code that shows the best way to do that? I think I know how to 
get the checkboxes onto the screen, but I'm not sure how to


a) Figure out which ones are checked
b) Access the data in the corresponding row of the table...

I'm sure this is basic stuff - any help appreciated...

thanks very much,

nbc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread raybristol

Thanks everyone, I will try it now :)



Gerolf Seitz wrote:
> 
> you can set your own AccessDeniedPage in Application.init():
> 
> getApplicationSettings.setAccessDeniedPage(
> MyAccessDeniedPageWithLinkToJspPage.class);
> 
>   Gerolf
> 
> On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, I am using isInstantiationAuthorized method in a application class
>> for
>> some simply security check, which is working fine, if the user doesn't
>> have
>> the right to access a page, page display:
>>
>> Access Denied
>> You do not have access to the page you requested.
>>
>> Return to home page
>>
>>
>> However, I can't change the url for 'Return to home page' link, as the
>> homepage is a jsp page but 'Return to home page' link just send me to the
>> default wicket homepage which specifed in xml file right? I wonder is
>> there
>> a way to change it as I am working with some jsp pages.
>>
>> Many thanks!
>> --
>> View this message in context:
>> http://www.nabble.com/question-about-%27isInstantiationAuthorized%27-method%2C-thanks%21-tf4676368.html#a13360843
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/question-about-%27isInstantiationAuthorized%27-method%2C-thanks%21-tf4676368.html#a13361043
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread Gerolf Seitz
you can set your own AccessDeniedPage in Application.init():

getApplicationSettings.setAccessDeniedPage(
MyAccessDeniedPageWithLinkToJspPage.class);

  Gerolf

On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>
>
> Hi, I am using isInstantiationAuthorized method in a application class for
> some simply security check, which is working fine, if the user doesn't
> have
> the right to access a page, page display:
>
> Access Denied
> You do not have access to the page you requested.
>
> Return to home page
>
>
> However, I can't change the url for 'Return to home page' link, as the
> homepage is a jsp page but 'Return to home page' link just send me to the
> default wicket homepage which specifed in xml file right? I wonder is
> there
> a way to change it as I am working with some jsp pages.
>
> Many thanks!
> --
> View this message in context:
> http://www.nabble.com/question-about-%27isInstantiationAuthorized%27-method%2C-thanks%21-tf4676368.html#a13360843
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread Jonas
> However, I can't change the url for 'Return to home page' link, as the
> homepage is a jsp page but 'Return to home page' link just send me to the
> default wicket homepage which specifed in xml file right? I wonder is there
> a way to change it as I am working with some jsp pages.

You could use
Application.getApplicationSettings().setAccessDeniedPage(Class klazz)
to change the access denied page to a custom page which contains
the link to you jsp page.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread raybristol

Hi, I am using isInstantiationAuthorized method in a application class for
some simply security check, which is working fine, if the user doesn't have
the right to access a page, page display:

Access Denied
You do not have access to the page you requested.

Return to home page


However, I can't change the url for 'Return to home page' link, as the
homepage is a jsp page but 'Return to home page' link just send me to the
default wicket homepage which specifed in xml file right? I wonder is there
a way to change it as I am working with some jsp pages.

Many thanks!
-- 
View this message in context: 
http://www.nabble.com/question-about-%27isInstantiationAuthorized%27-method%2C-thanks%21-tf4676368.html#a13360843
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket and Netbeans 6

2007-10-23 Thread ZedroS Schwart
Hi again

So, it's great : the latest nightly build of NB 6 managed to retrieve
a lost UML project and, even better, the modules you've indicated were
of fact for Wicket 1.3 and not 1.2 as I was fearing :)

Let's continue digging in !

Thanks a lot

Cheers,
ZedroS

On 10/23/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> hi all
>
> Great answers !
>
> I'm downloading the latest NB to avoid bugs corrected in the Beta 1,
> and then I'll follow your advice Ayodeji.
>
> I'll let you know of the outcome :)
>
> Cheers
> ZedroS
>
> On 10/23/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > I have checked out and built wicket support for netbeans from
> > http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket
> > before,
> >
> > if you have NB6 installed already,
> >
> > install these two NB modules, create a WebApplication Project in NB and you
> > will have a ready sample application that runs fine and contains all the
> > artifacts you need to build without errors
> >
> > Download and install this module into NB6
> > http://www.dabarobjects.com/downloads/org-netbeans-modules-web-wicket.nbm
> > Download and install this module in Netbeans6
> > http://www.dabarobjects.com/downloads/org-netbeans-modules-wicket-library.nbm
> >
> > start netbeans, create a new Web Application Project, Select Wicket 1.2 and
> > then BOOM! everything is ready to go
> >
> > yu may have to remove the * behind the url when it launches browser
> >
> > On 10/22/07, Reinout van Schouwen <[EMAIL PROTECTED]> wrote:
> > >
> > > Op zaterdag 20-10-2007 om 16:20 uur [tijdzone +0100], schreef Ayodeji
> > > Aladejebi:
> > > > if you are a beginner with both Netbeans and Maven then find one of the
> > > > wicket plugins for NB6 and install them. they have a quickstart project
> > > by
> > > > default
> > >
> > > "One of the wicket plugins for NB6"?
> > >
> > > As far as I have been able to track down, there's exactly one Wicket
> > > plugin supposed to work with Netbeans 6. You have to fetch it from a CVS
> > > branch and build it yourself -- which I haven't managed yet; it keeps
> > > complaining about an undefined nbplatform.default.harness.dir.
> > >
> > > If anyone else wants to try, here's how far I got:
> > > - create an account on dev.java.net;
> > > - follow cvs instructions but use the -r nb_60 branch:
> > > cvs -d :pserver:@cvs.dev.java.net:/cvs checkout -r nb_60
> > > nbwicketsupport
> > > - open the subproject 'nbmodule' in Netbeans
> > >
> > > regards,
> > >
> > > --
> > > Reinout van Schouwen
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > Get A Free Blog:
> > http://blogs.cowblock.net/
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing selection in RadioChoice

2007-10-23 Thread wheleph

I'm using Wicket 1.2.6. There's no AjaxFormChoiceComponentUpdatingBehavior

wheleph

-- 
View this message in context: 
http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13359898
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two forms on single page

2007-10-23 Thread Martijn Dashorst
You are asking for something that HTML doesn't support.

That said...

Wicket 1.3's nested forms support allows you to do this:







At least to my understanding this should work.

Martijn

On 10/23/07, wheleph <[EMAIL PROTECTED]> wrote:
>
> How to submit two forms by clicking on one link?
>
> wheleph
> --
> View this message in context: 
> http://www.nabble.com/Two-forms-on-single-page-tf4675929.html#a13359615
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing components with new data w/o altering the backing model

2007-10-23 Thread Oliver Lieven

Hi,

two week ago I had a similar problem (see Thread
"AutoCompleteTextfield---how to populate two input fields -
tf4592192.html#a13166291")

The solution was to have an autocomplete-list attached to the zipcode and
the city-field. The list shows the valid zipcode-city combinations for the
zipcode/city entered so far. When the user chooses an entry from the list,
both fields are filled accordingly.

To achieve this the AutoCompleteTextField's behavior was modified so that it
is able to update two fields at once from the user's selection (with
different values). In that way, entering the data occurs in the browser
only, the model remains untouched until the user submits the form. (Indeed,
a slightly different approach, but works great).

regards,
Oliver



Matej Knopp-2 wrote:
> 
> I think what you could try (though it would be a nasty hack :) ) is to
> set rawInput property on FormComponent. However, you'll need some
> introspection to do that, as it is private and we don't plan to
> provide an accessor for it :)
> 
> -Matej
> 
> On 10/23/07, karthik Guru <[EMAIL PROTECTED]> wrote:
>> I have a form like this -
>>
>> Name:  [.]
>> Zip:  [.]
>> City: [.]
>> State:   [.]
>>
>> [Save]
>>
>> On filling the zip i want to auto populate the city and state. I can
>> attach
>> a AjaxFormComponentUpdatingBehavior to the zip field and do this. But I
>> don't want to update the zip model, so i plan to have my version of
>> AjaxFormComponentUpdatingBehavior and 'not' update the model. I can
>> possibly
>> get the user entered value from the convertedInput.
>>
>> But I don't want to want to update the city and the state model either to
>> auto-populate the fields.
>>
>> Basically I want to hold off on the model updates until somebody clicks
>> the
>> save button.
>>
>> Can i set the converted input on a component and get it to refresh
>> through
>> Ajax?
>> I know that I can do this through javascript ($(fieldId).value = ''blah
>> blah')and add it to AjaxTarget. But i was wondering if i can just work
>> with
>> components (do setConvertedInput / something) and then add it to
>> Ajaxtarget
>> and make it work?
>>
>> -- karthik --
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refreshing-components-with-new-data-w-o-altering-the-backing-model-tf4675439.html#a13359783
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing selection in RadioChoice

2007-10-23 Thread Swaroop Belur
have a look at  AjaxFormChoiceComponentUpdatingBehavior

-swaroop

On 10/23/07, wheleph <[EMAIL PROTECTED]> wrote:
>
>
> Hello everyone!
>
> I need to capture changing selection in RadioChoice component. Of course I
> could override wantOnSelectionChangedNotifications() and
> onSelectionChanged(java.lang.Object newSelection) methods. But in this
> case
> page reloading occurs which is not desired (because other fields get
> reset).
> I'd like to use Ajax here but simply adding AjaxFormSubmitBehavior to
> RadioChoice component doesn't work.
>
> Any other ideas?
>
> wheleph
> --
> View this message in context:
> http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13359614
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Changing selection in RadioChoice

2007-10-23 Thread Gerolf Seitz
have you looked at AjaxFormChoiceComponentUpdatingBehavior?
it doesn't submit the form though.

  Gerolf

On 10/23/07, wheleph <[EMAIL PROTECTED]> wrote:
>
>
> Hello everyone!
>
> I need to capture changing selection in RadioChoice component. Of course I
> could override wantOnSelectionChangedNotifications() and
> onSelectionChanged(java.lang.Object newSelection) methods. But in this
> case
> page reloading occurs which is not desired (because other fields get
> reset).
> I'd like to use Ajax here but simply adding AjaxFormSubmitBehavior to
> RadioChoice component doesn't work.
>
> Any other ideas?
>
> wheleph
> --
> View this message in context:
> http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13359614
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Two forms on single page

2007-10-23 Thread wheleph

How to submit two forms by clicking on one link?

wheleph
-- 
View this message in context: 
http://www.nabble.com/Two-forms-on-single-page-tf4675929.html#a13359615
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Changing selection in RadioChoice

2007-10-23 Thread wheleph

Hello everyone!

I need to capture changing selection in RadioChoice component. Of course I
could override wantOnSelectionChangedNotifications() and
onSelectionChanged(java.lang.Object newSelection) methods. But in this case
page reloading occurs which is not desired (because other fields get reset).
I'd like to use Ajax here but simply adding AjaxFormSubmitBehavior to
RadioChoice component doesn't work.

Any other ideas?

wheleph
-- 
View this message in context: 
http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13359614
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refreshing components with new data w/o altering the backing model

2007-10-23 Thread Matej Knopp
I think what you could try (though it would be a nasty hack :) ) is to
set rawInput property on FormComponent. However, you'll need some
introspection to do that, as it is private and we don't plan to
provide an accessor for it :)

-Matej

On 10/23/07, karthik Guru <[EMAIL PROTECTED]> wrote:
> I have a form like this -
>
> Name:  [.]
> Zip:  [.]
> City: [.]
> State:   [.]
>
> [Save]
>
> On filling the zip i want to auto populate the city and state. I can attach
> a AjaxFormComponentUpdatingBehavior to the zip field and do this. But I
> don't want to update the zip model, so i plan to have my version of
> AjaxFormComponentUpdatingBehavior and 'not' update the model. I can possibly
> get the user entered value from the convertedInput.
>
> But I don't want to want to update the city and the state model either to
> auto-populate the fields.
>
> Basically I want to hold off on the model updates until somebody clicks the
> save button.
>
> Can i set the converted input on a component and get it to refresh through
> Ajax?
> I know that I can do this through javascript ($(fieldId).value = ''blah
> blah')and add it to AjaxTarget. But i was wondering if i can just work with
> components (do setConvertedInput / something) and then add it to Ajaxtarget
> and make it work?
>
> -- karthik --
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket and Netbeans 6

2007-10-23 Thread ZedroS Schwart
hi all

Great answers !

I'm downloading the latest NB to avoid bugs corrected in the Beta 1,
and then I'll follow your advice Ayodeji.

I'll let you know of the outcome :)

Cheers
ZedroS

On 10/23/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> I have checked out and built wicket support for netbeans from
> http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket
> before,
>
> if you have NB6 installed already,
>
> install these two NB modules, create a WebApplication Project in NB and you
> will have a ready sample application that runs fine and contains all the
> artifacts you need to build without errors
>
> Download and install this module into NB6
> http://www.dabarobjects.com/downloads/org-netbeans-modules-web-wicket.nbm
> Download and install this module in Netbeans6
> http://www.dabarobjects.com/downloads/org-netbeans-modules-wicket-library.nbm
>
> start netbeans, create a new Web Application Project, Select Wicket 1.2 and
> then BOOM! everything is ready to go
>
> yu may have to remove the * behind the url when it launches browser
>
> On 10/22/07, Reinout van Schouwen <[EMAIL PROTECTED]> wrote:
> >
> > Op zaterdag 20-10-2007 om 16:20 uur [tijdzone +0100], schreef Ayodeji
> > Aladejebi:
> > > if you are a beginner with both Netbeans and Maven then find one of the
> > > wicket plugins for NB6 and install them. they have a quickstart project
> > by
> > > default
> >
> > "One of the wicket plugins for NB6"?
> >
> > As far as I have been able to track down, there's exactly one Wicket
> > plugin supposed to work with Netbeans 6. You have to fetch it from a CVS
> > branch and build it yourself -- which I haven't managed yet; it keeps
> > complaining about an undefined nbplatform.default.harness.dir.
> >
> > If anyone else wants to try, here's how far I got:
> > - create an account on dev.java.net;
> > - follow cvs instructions but use the -r nb_60 branch:
> > cvs -d :pserver:@cvs.dev.java.net:/cvs checkout -r nb_60
> > nbwicketsupport
> > - open the subproject 'nbmodule' in Netbeans
> >
> > regards,
> >
> > --
> > Reinout van Schouwen
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> Get A Free Blog:
> http://blogs.cowblock.net/
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket and Netbeans 6

2007-10-23 Thread Ayodeji Aladejebi
I have checked out and built wicket support for netbeans from
http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket
before,

if you have NB6 installed already,

install these two NB modules, create a WebApplication Project in NB and you
will have a ready sample application that runs fine and contains all the
artifacts you need to build without errors

Download and install this module into NB6
http://www.dabarobjects.com/downloads/org-netbeans-modules-web-wicket.nbm
Download and install this module in Netbeans6
http://www.dabarobjects.com/downloads/org-netbeans-modules-wicket-library.nbm

start netbeans, create a new Web Application Project, Select Wicket 1.2 and
then BOOM! everything is ready to go

yu may have to remove the * behind the url when it launches browser

On 10/22/07, Reinout van Schouwen <[EMAIL PROTECTED]> wrote:
>
> Op zaterdag 20-10-2007 om 16:20 uur [tijdzone +0100], schreef Ayodeji
> Aladejebi:
> > if you are a beginner with both Netbeans and Maven then find one of the
> > wicket plugins for NB6 and install them. they have a quickstart project
> by
> > default
>
> "One of the wicket plugins for NB6"?
>
> As far as I have been able to track down, there's exactly one Wicket
> plugin supposed to work with Netbeans 6. You have to fetch it from a CVS
> branch and build it yourself -- which I haven't managed yet; it keeps
> complaining about an undefined nbplatform.default.harness.dir.
>
> If anyone else wants to try, here's how far I got:
> - create an account on dev.java.net;
> - follow cvs instructions but use the -r nb_60 branch:
> cvs -d :pserver:@cvs.dev.java.net:/cvs checkout -r nb_60
> nbwicketsupport
> - open the subproject 'nbmodule' in Netbeans
>
> regards,
>
> --
> Reinout van Schouwen
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Get A Free Blog:
http://blogs.cowblock.net/